cms/app-client/app/helpers/url-encode.js
author ymh <ymh.work@gmail.com>
Wed, 13 Sep 2017 22:19:48 +0200
changeset 544 ad58d7627f70
parent 415 0046797e0411
permissions -rw-r--r--
use same http client in ImportCocoonRDF and define version 0.22
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
415
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     1
import Ember from 'ember';
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     2
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     3
export function urlEncode(params) {
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     4
    return encodeURIComponent(params[0]);
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     5
}
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     6
0046797e0411 add share buttons
ymh <ymh.work@gmail.com>
parents:
diff changeset
     7
export default Ember.Helper.helper(urlEncode);