mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update admin.js
This commit is contained in:
parent
0b51e430d0
commit
4ae7d3484f
@ -867,7 +867,7 @@ $(function () {
|
|||||||
var url = $(this).attr('action').replace(/&?page=\d+/g, '');
|
var url = $(this).attr('action').replace(/&?page=\d+/g, '');
|
||||||
if ((this.method || 'get').toLowerCase() === 'get') {
|
if ((this.method || 'get').toLowerCase() === 'get') {
|
||||||
var split = url.indexOf('?') > -1 ? '&' : '?', stype = location.href.indexOf('spm=') > -1 ? '#' : '';
|
var split = url.indexOf('?') > -1 ? '&' : '?', stype = location.href.indexOf('spm=') > -1 ? '#' : '';
|
||||||
return location.href = stype + $.menu.parseUri(url + split + $(this).serialize());
|
return location.href = stype + $.menu.parseUri(url + split + $(this).serialize().replace(/\+/g, ' '));
|
||||||
}
|
}
|
||||||
return $.form.load(url, this, 'post');
|
return $.form.load(url, this, 'post');
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user