Fix Rice on Opera.
This commit is contained in:
parent
f12847ae9c
commit
65d0583b7f
@ -10767,7 +10767,9 @@
|
||||
});
|
||||
},
|
||||
cb: {
|
||||
check: function() {
|
||||
check: function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return this.check.click();
|
||||
},
|
||||
option: function(e) {
|
||||
@ -10862,9 +10864,7 @@
|
||||
});
|
||||
div.check = input;
|
||||
$.after(input, div);
|
||||
if (div.parentElement.tagName !== 'LABEL') {
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
}
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
},
|
||||
select: function(select) {
|
||||
var div;
|
||||
|
||||
@ -10788,7 +10788,9 @@
|
||||
});
|
||||
},
|
||||
cb: {
|
||||
check: function() {
|
||||
check: function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return this.check.click();
|
||||
},
|
||||
option: function(e) {
|
||||
@ -10883,9 +10885,7 @@
|
||||
});
|
||||
div.check = input;
|
||||
$.after(input, div);
|
||||
if (div.parentElement.tagName !== 'LABEL') {
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
}
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
},
|
||||
select: function(select) {
|
||||
var div;
|
||||
|
||||
@ -10770,7 +10770,9 @@
|
||||
});
|
||||
},
|
||||
cb: {
|
||||
check: function() {
|
||||
check: function(e) {
|
||||
e.preventDefault();
|
||||
e.stopPropagation();
|
||||
return this.check.click();
|
||||
},
|
||||
option: function(e) {
|
||||
@ -10865,9 +10867,7 @@
|
||||
});
|
||||
div.check = input;
|
||||
$.after(input, div);
|
||||
if (div.parentElement.tagName !== 'LABEL') {
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
}
|
||||
return $.on(div, 'click', Rice.cb.check);
|
||||
},
|
||||
select: function(select) {
|
||||
var div;
|
||||
|
||||
@ -8,7 +8,9 @@ Rice =
|
||||
cb: @node
|
||||
|
||||
cb:
|
||||
check: ->
|
||||
check: (e)->
|
||||
e.preventDefault()
|
||||
e.stopPropagation()
|
||||
@check.click()
|
||||
|
||||
option: (e) ->
|
||||
@ -90,8 +92,7 @@ Rice =
|
||||
className: 'rice'
|
||||
div.check = input
|
||||
$.after input, div
|
||||
if div.parentElement.tagName isnt 'LABEL'
|
||||
$.on div, 'click', Rice.cb.check
|
||||
$.on div, 'click', Rice.cb.check
|
||||
|
||||
select: (select) ->
|
||||
$.addClass select, 'riced'
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user