cms/app-client/app/helpers/url-encode.js
author ymh <ymh.work@gmail.com>
Thu, 24 Nov 2016 19:08:36 +0100
changeset 446 2a93eb9f38f5
parent 415 0046797e0411
permissions -rw-r--r--
pb m3.22 - set correct filter when clicking on subject and language in notice
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);