cms/app-client/app/helpers/url-encode.js
author ymh <ymh.work@gmail.com>
Wed, 08 Feb 2017 15:25:24 +0100
changeset 502 74fba571487e
parent 415 0046797e0411
permissions -rw-r--r--
Complete the notice display. add various fields to document to correctly display the notice. Correct bug #0025746
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);