tp6更新到最新版本
目录结构调整
This commit is contained in:
@@ -566,7 +566,7 @@
|
||||
},
|
||||
// 成功提示
|
||||
alertSuccess: function(content) {
|
||||
$.model.alert(content, modal_status.SUCCESS);
|
||||
layer.msg(content);
|
||||
},
|
||||
// 警告提示
|
||||
alertWarning: function(content) {
|
||||
@@ -1484,6 +1484,20 @@ $(function() {
|
||||
}
|
||||
expandFlag = expandFlag ? false: true;
|
||||
})
|
||||
|
||||
$('button.ajax-post,.ajax-get').click(function(e){
|
||||
e.preventDefault();
|
||||
var type = 'post',url = '';
|
||||
if ($(this).hasClass('ajax-get')) {
|
||||
type = 'get'
|
||||
}
|
||||
var data = {};
|
||||
$.each($($(this).attr('target-form')).serializeArray(), function(i, field) {
|
||||
data[field.name] = field.value;
|
||||
});
|
||||
$.operate.submit(url, type, 'json', data);
|
||||
});
|
||||
|
||||
// 按下ESC按钮关闭弹层
|
||||
$('body', document).on('keyup', function(e) {
|
||||
if (e.which === 27) {
|
||||
@@ -1503,7 +1517,7 @@ table_type = {
|
||||
/** 消息状态码 */
|
||||
web_status = {
|
||||
SUCCESS: 0,
|
||||
FAIL: 500,
|
||||
FAIL: 1,
|
||||
WARNING: 301
|
||||
};
|
||||
|
||||
@@ -1544,10 +1558,10 @@ $.ajaxSetup({
|
||||
}
|
||||
}
|
||||
});
|
||||
layer.config({
|
||||
extend: 'moon/style.css',
|
||||
skin: 'layer-ext-moon'
|
||||
});
|
||||
// layer.config({
|
||||
// extend: 'moon/style.css',
|
||||
// skin: 'layer-ext-moon'
|
||||
// });
|
||||
|
||||
/**
|
||||
* Get a prestored setting
|
||||
|
||||
Reference in New Issue
Block a user