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
commit 27f45cfdee
7 changed files with 10 additions and 22 deletions

View file

@ -32,7 +32,7 @@
<div class="controls">
<div class="switch">
<input type="checkbox" name="useSceneName"/>
<input type="checkbox" name="downloadClientUseSceneName"/>
</div>
<span class="help-inline-checkbox">
<i class="icon-question-sign" title="Use Scene name when adding NZB to queue?"></i>

View file

@ -25,7 +25,6 @@ define([
},
onRender: function () {
this.ui.bsSwitch.bootstrapSwitch();
this.ui.tooltip.tooltip({ placement: 'right', html: true });
this.ui.pathInput.autoComplete('/directories');

View file

@ -10,12 +10,10 @@ define([
className: 'form-horizontal',
ui: {
bsSwitch : '.switch',
tooltip: '[class^="help-inline"] i'
},
onRender: function () {
this.ui.bsSwitch.bootstrapSwitch();
this.ui.tooltip.tooltip({ placement: 'right', html: true });
}
});

View file

@ -10,7 +10,6 @@ define([
className: 'form-horizontal',
ui: {
bsSwitch : '.switch',
tooltip: '[class^="help-inline"] i'
},
@ -19,7 +18,6 @@ define([
},
onRender: function () {
this.ui.bsSwitch.bootstrapSwitch();
this.ui.tooltip.tooltip({ placement: 'right' });
}
});

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