Update soft.js

pull/109/head
Mr Chen 7 years ago
parent d7616600c4
commit 345876def4
  1. 12
      static/js/soft.js

@ -306,16 +306,7 @@ function toIndexDisplay(name, version, coexist) {
if (rdata.status) { if (rdata.status) {
layer.msg(rdata.msg, { icon: 1 }) layer.msg(rdata.msg, { icon: 1 })
} }
}) },'json');
}
//刷新缓存
function flush_cache() {
var loadT = layer.msg(lan.soft.get_list, { icon: 16, time: 0, shade: [0.3, '#000'] })
$.post('/plugins?action=flush_cache', {}, function(rdata) {
layer.close(loadT)
layer.msg(rdata.msg, { icon: rdata.status ? 1 : 2 });
});
} }
function indexListHtml(callback){ function indexListHtml(callback){
@ -380,7 +371,6 @@ function indexListHtml(callback){
if (typeof callback=='function'){ if (typeof callback=='function'){
callback(); callback();
} }
},'json'); },'json');
} }

Loading…
Cancel
Save