| @@ -40,14 +40,7 @@ export default async function initImage(){ | |||||
| $('#dropdown_image') | $('#dropdown_image') | ||||
| .dropdown({ | .dropdown({ | ||||
| allowAdditions: true, | allowAdditions: true, | ||||
| forceSelection:false, | |||||
| allowReselection:true, | |||||
| selectOnKeydown:false, | |||||
| showOnFocus:false, | |||||
| onChange: function(value, text, $selectedItem) { | onChange: function(value, text, $selectedItem) { | ||||
| value=value.replace(/[, ]/g,'') | |||||
| console.log(value,text,$selectedItem) | |||||
| $('#course_label_item').empty() | $('#course_label_item').empty() | ||||
| } | } | ||||
| }) | }) | ||||
| @@ -86,11 +79,11 @@ export default async function initImage(){ | |||||
| if(res.Code===1){ | if(res.Code===1){ | ||||
| $('.ui.positive.message').text(res.Message).show().delay(1500).fadeOut(); | $('.ui.positive.message').text(res.Message).show().delay(1500).fadeOut(); | ||||
| }else if(res.Code==0){ | }else if(res.Code==0){ | ||||
| if(link.indexOf('commit_image')===1){ | |||||
| $('.ui.positive.message').text('保存镜像成功').show().delay(1500).fadeOut(); | |||||
| }else{ | |||||
| $('.ui.positive.message').text('提交镜像成功').show().delay(1500).fadeOut(); | |||||
| } | |||||
| // if(link.indexOf('commit_image')===1){ | |||||
| // $('.ui.positive.message').text('保存镜像成功').show().delay(1500).fadeOut(); | |||||
| // }else{ | |||||
| // $('.ui.positive.message').text('提交镜像成功').show().delay(1500).fadeOut(); | |||||
| // } | |||||
| if(location.href.indexOf('imageAdmin')!==-1){ | if(location.href.indexOf('imageAdmin')!==-1){ | ||||
| location.href = `${window.config.AppSubUrl}/admin/images` | location.href = `${window.config.AppSubUrl}/admin/images` | ||||