cms/app-client/app/helpers/url-encode.js
author ymh <ymh.work@gmail.com>
Mon, 19 Dec 2016 21:58:02 +0100
changeset 477 ce52f0fca330
parent 415 0046797e0411
permissions -rw-r--r--
add volume control to the player
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);