Update select.html

This commit is contained in:
Anyon 2020-01-03 11:43:01 +08:00
parent 2e4bb13cf1
commit 21b3b903cf

View File

@ -57,7 +57,7 @@
$(this).removeClass('active');
});
// 外部选择器
var seletor = '[name="{$Think.get.field|decode|default=0}"]';
var seletor = '[name="{:decode(input("get.field","0"))}"]';
if (seletor) {
$('[data-news-id]').on('click', function () {
window.top.$(seletor).val($(this).attr('data-news-id')).trigger('change');