...
|
...
|
@@ -121,14 +121,13 @@ |
|
|
yes: function (index, layero) {
|
|
|
//do something
|
|
|
var iframeWin = window[layero.find('iframe')[0]['name']];
|
|
|
var selectedCategories = iframeWin.confirm();
|
|
|
console.log(selectedCategories);
|
|
|
if (selectedCategories.selectedCategoriesId.length == 0) {
|
|
|
var data = iframeWin.confirm();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
console.log(data);
|
|
|
|
|
|
}
|
|
|
$('#js-categories-id-input').val(selectedCategories.selectedCategoriesId.join(','));
|
|
|
$('#js-categories-name-input').val(selectedCategories.selectedCategoriesName.join(' '));
|
|
|
console.log(layer.getFrameIndex(index));
|
|
|
layer.close(index); //如果设定了yes回调,需进行手工关闭
|
|
|
}
|
|
|
});
|
...
|
...
|
|