Remove button switch

git-svn-id: http://xe-core.googlecode.com/svn/branches/1.5.0@8901 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
taggon 2011-08-26 01:21:29 +00:00
parent 1efce9b356
commit eb3a555a62

View file

@ -52,27 +52,6 @@ jQuery(function($){
.trigger('update.checkbox', [name, this.checked]);
});
// Button switch
$('button[name]')
.click(function(){
var $this = $(this), $radio;
$radio = $this.data('radio');
if(!$radio) {
$radio = $('<input type="radio" />').hide()
.attr('name', $this.attr('name'))
.attr('value', $this.attr('value'))
.insertBefore($this);
$this
.removeAttr('name')
.removeAttr('value')
.data('radio', $radio);
}
$radio.prop('checked', true);
});
// Global Navigation Bar
var $menuitems = $('div.gnb')
.removeClass('jx')