feature(rest) add ability to work with #-names

This commit is contained in:
coderaiser 2014-06-25 05:11:20 -04:00
parent 5f6ec6d9f3
commit 2343677277

View file

@ -148,6 +148,12 @@ var Util, DOM, CloudFunc;
p.url = apiURL + p.url;
p.url = encodeURI(p.url);
/*
* if we send ajax request -
* no need in hash so we escape #
*/
p.url = Util.replaceStr(p.url, '#', '%23');
DOM.load.ajax({
method : p.method,
url : p.url,