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