Fix Rice on Opera.

This commit is contained in:
Zixaphir 2013-05-05 17:31:40 -07:00
parent f12847ae9c
commit 65d0583b7f
4 changed files with 16 additions and 15 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;

View File

@ -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'