正在显示
1 个修改的文件
包含
6 行增加
和
7 行删除
@@ -121,14 +121,13 @@ | @@ -121,14 +121,13 @@ | ||
121 | yes: function (index, layero) { | 121 | yes: function (index, layero) { |
122 | //do something | 122 | //do something |
123 | var iframeWin = window[layero.find('iframe')[0]['name']]; | 123 | var iframeWin = window[layero.find('iframe')[0]['name']]; |
124 | - var selectedCategories = iframeWin.confirm(); | ||
125 | - console.log(selectedCategories); | ||
126 | - if (selectedCategories.selectedCategoriesId.length == 0) { | 124 | + var data = iframeWin.confirm(); |
125 | + | ||
126 | + | ||
127 | + | ||
128 | + | ||
129 | + console.log(data); | ||
127 | 130 | ||
128 | - } | ||
129 | - $('#js-categories-id-input').val(selectedCategories.selectedCategoriesId.join(',')); | ||
130 | - $('#js-categories-name-input').val(selectedCategories.selectedCategoriesName.join(' ')); | ||
131 | - console.log(layer.getFrameIndex(index)); | ||
132 | layer.close(index); //如果设定了yes回调,需进行手工关闭 | 131 | layer.close(index); //如果设定了yes回调,需进行手工关闭 |
133 | } | 132 | } |
134 | }); | 133 | }); |
-
请 注册 或 登录 后发表评论