fixed bootstrap switches. still need to listen to checkbox event.

This commit is contained in:
kay.one 2013-04-20 15:51:39 -07:00
parent d85b825e06
commit 27f45cfdee
7 changed files with 10 additions and 22 deletions

View file

@ -6,18 +6,10 @@ define(['app', 'Quality/QualityProfileModel'], function () {
tagName : 'div',
className: "modal",
ui: {
bsSwitch: '.switch'
},
events: {
'click .x-save': 'saveQualityProfile'
},
onRender: function () {
this.ui.bsSwitch.bootstrapSwitch();
},
saveQualityProfile: function () {
//Todo: Make sure model is updated with Allowed, Cutoff, Name