mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-07-21 02:29:23 +00:00
feature(rest) add ability to work with #-names
This commit is contained in:
parent
5f6ec6d9f3
commit
2343677277
1 changed files with 6 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue