diff --git a/application/admin/view/public/base.html b/application/admin/view/public/base.html index 8273f94..1f9b088 100644 --- a/application/admin/view/public/base.html +++ b/application/admin/view/public/base.html @@ -606,6 +606,33 @@ + {block name="myScript"}{/block} diff --git a/public/admin/static/js/template.js b/public/admin/static/js/template.js index d4f3d31..51dc604 100644 --- a/public/admin/static/js/template.js +++ b/public/admin/static/js/template.js @@ -79,29 +79,3 @@ }); })(jQuery); - -function refresh( url ) { - var $ = jQuery; - $.ajax({ - type: "GET", - url: url, - success: function(data){ - if( data.code == 200 ){ - if( data.data.tempType == 'table' ){ - if( $.buildTable ){ - $('#content').html($.buildTable(data.data)); - $('#tableBox').hide().fadeIn(800); - }else{ - $.getScript('/static/js/template/table.js', function (){ - $('#content').html($.buildTable(data.data)); - $('#tableBox').hide().fadeIn(800); - }); - } - } - }else{ - $.alertMsg('请求失败!') - } - } - - }); -}