pull/123/head
midoks 3 years ago
parent 290c8cb59c
commit 77a7c20e2c
  1. 11
      route/static/app/public.js
  2. 9
      route/static/app/soft.js

@ -826,15 +826,14 @@ function installTips() {
// });
// };
function fly(a,e) {
function flySlow(a) {
var b = $("#task").offset();
var e = $("." + a);
var d = e;
var c = $('<span class="yuandian"></span>');
var d = $("." + a);
c.fly({
start: {
left: d.pageX,
top: d.pageY
left: d.offset().left,
top: d.offset().top,
},
end: {
left: b.left + 10,
@ -842,10 +841,12 @@ function fly(a,e) {
width: 0,
height: 0
},
speed: 0.65,
onEnd: function() {
layer.closeAll();
layer.msg(lan.bt.task_add, {icon: 1});
getTaskCount();
$('.yuandian').remove();
}
});

@ -214,9 +214,9 @@ function addVersion(name, ver, type, obj, title, install_pre_inspection) {
$(this).attr('checked', 'checked').parent().siblings().find("input").removeAttr('checked');
});
installTips();
// fly("layui-layer-btn0");
},
yes:function(e){
yes:function(index,layero){
// console.log(index,layero)
var info = $("#selectVersion").val().toLowerCase();
if (info == ''){
info = $("#selectVersion").text().toLowerCase();
@ -230,12 +230,13 @@ function addVersion(name, ver, type, obj, title, install_pre_inspection) {
//安装检查
installPreInspection(name, version, function(){
runInstall(data);
fly("layui-layer-btn0",e);
flySlow('layui-layer-btn0');
});
return;
}
runInstall(data);
fly("layui-layer-btn0",e);
flySlow('layui-layer-btn0');
}
});
}

Loading…
Cancel
Save