Small fix
This commit is contained in:
parent
996080cab9
commit
950f4468f5
@ -13503,12 +13503,12 @@
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
},
|
||||
select: function(select) {
|
||||
var div;
|
||||
var div, _ref;
|
||||
|
||||
$.addClass(select, 'riced');
|
||||
div = $.el('div', {
|
||||
className: 'selectrice',
|
||||
innerHTML: "<div>" + (select.options[select.selectedIndex].textContent || null) + "</div>"
|
||||
innerHTML: "<div>" + (((_ref = select.options[select.selectedIndex || 0]) != null ? _ref.textContent : void 0) || null) + "</div>"
|
||||
});
|
||||
$.on(div, "click", Rice.cb.select);
|
||||
return $.after(select, div);
|
||||
|
||||
@ -13507,12 +13507,12 @@
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
},
|
||||
select: function(select) {
|
||||
var div;
|
||||
var div, _ref;
|
||||
|
||||
$.addClass(select, 'riced');
|
||||
div = $.el('div', {
|
||||
className: 'selectrice',
|
||||
innerHTML: "<div>" + (select.options[select.selectedIndex].textContent || null) + "</div>"
|
||||
innerHTML: "<div>" + (((_ref = select.options[select.selectedIndex || 0]) != null ? _ref.textContent : void 0) || null) + "</div>"
|
||||
});
|
||||
$.on(div, "click", Rice.cb.select);
|
||||
return $.after(select, div);
|
||||
|
||||
@ -98,7 +98,7 @@ Rice =
|
||||
$.addClass select, 'riced'
|
||||
div = $.el 'div',
|
||||
className: 'selectrice'
|
||||
innerHTML: "<div>#{select.options[select.selectedIndex].textContent or null}</div>"
|
||||
innerHTML: "<div>#{select.options[select.selectedIndex or 0]?.textContent or null}</div>"
|
||||
$.on div, "click", Rice.cb.select
|
||||
|
||||
$.after select, div
|
||||
Loading…
x
Reference in New Issue
Block a user