mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-27 15:19:57 +09:00
MINIFY
This commit is contained in:
parent
d4486ab321
commit
33eeeb64b3
4 changed files with 13 additions and 9 deletions
|
|
@ -1062,12 +1062,13 @@ jQuery(function($) {
|
|||
var loc = isSameUrl(this, window.location.href) ? current_url : this;
|
||||
var idx = loc.indexOf('?');
|
||||
var uri = loc.replace(/#$/, '');
|
||||
var act, re, v, toReplace;
|
||||
var act, re, v, toReplace, query_string;
|
||||
|
||||
if (typeof(val)=='undefined') val = '';
|
||||
|
||||
if (idx != -1) {
|
||||
var query_string = uri.substr(idx+1, loc.length), args = {}, q_list = [];
|
||||
var args = {}, q_list = [];
|
||||
query_string = uri.substr(idx + 1, loc.length);
|
||||
uri = loc.substr(0, idx);
|
||||
query_string.replace(/([^=]+)=([^&]*)(&|$)/g, function(all,key,val) { args[key] = val; });
|
||||
|
||||
|
|
@ -1080,9 +1081,12 @@ jQuery(function($) {
|
|||
}
|
||||
|
||||
query_string = q_list.join('&');
|
||||
uri = uri+(query_string?'?'+query_string:'');
|
||||
uri = uri + (query_string ? '?' + encodeURI(query_string) : '');
|
||||
} else {
|
||||
if (String(val).trim()) uri = uri+'?'+key+'='+val;
|
||||
if (String(val).trim()) {
|
||||
query_string = '?' + key + '=' + val;
|
||||
uri = uri + encodeURI(query_string);
|
||||
}
|
||||
}
|
||||
|
||||
re = /^https:\/\/([^:\/]+)(:\d+|)/i;
|
||||
|
|
@ -1112,7 +1116,7 @@ jQuery(function($) {
|
|||
// insert index.php if it isn't included
|
||||
uri = uri.replace(/\/(index\.php)?\?/, '/index.php?');
|
||||
|
||||
return encodeURI(uri);
|
||||
return uri;
|
||||
};
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue