Using bsSwitch instead of switch to remove jslint errors

pull/4/head
Mark McDowall 12 years ago committed by markus101
parent 609c5bfc24
commit ccbd88be74

@ -10,7 +10,7 @@ define(['app', 'Series/SeriesModel', 'Series/Delete/DeleteSeriesView', 'Quality/
progressbar : '.progress .bar', progressbar : '.progress .bar',
qualityProfile : '.x-quality-profile', qualityProfile : '.x-quality-profile',
backlogSettings: '.x-backlog-setting', backlogSettings: '.x-backlog-setting',
switch : '.switch' bsSwitch : '.switch'
}, },
events: { events: {
@ -19,7 +19,7 @@ define(['app', 'Series/SeriesModel', 'Series/Delete/DeleteSeriesView', 'Quality/
}, },
onRender: function () { onRender: function () {
this.ui.switch.bootstrapSwitch(); this.ui.bsSwitch.bootstrapSwitch();
}, },

@ -10,7 +10,7 @@ define([
className: 'form-horizontal', className: 'form-horizontal',
ui: { ui: {
switch : '.switch', bsSwitch : '.switch',
tooltip : '.help-inline i', tooltip : '.help-inline i',
pathInput : '.x-path', pathInput : '.x-path',
sabConfig : '.x-sab-config', sabConfig : '.x-sab-config',
@ -25,7 +25,7 @@ define([
}, },
onRender: function () { onRender: function () {
this.ui.switch.bootstrapSwitch(); this.ui.bsSwitch.bootstrapSwitch();
this.ui.tooltip.tooltip({ placement: 'right', html: true }); this.ui.tooltip.tooltip({ placement: 'right', html: true });
this.ui.pathInput.autoComplete('/directories'); this.ui.pathInput.autoComplete('/directories');

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

@ -68,7 +68,7 @@
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">Use Scene Folders</label> <label class="control-label">Use Season Folders</label>
<div class="controls"> <div class="controls">
<div class="switch"> <div class="switch">

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

@ -7,7 +7,7 @@ define(['app', 'Quality/QualityProfileModel'], function () {
className: "modal", className: "modal",
ui: { ui: {
switch: '.switch' bsSwitch: '.switch'
}, },
events: { events: {
@ -15,7 +15,7 @@ define(['app', 'Quality/QualityProfileModel'], function () {
}, },
onRender: function () { onRender: function () {
this.ui.switch.bootstrapSwitch(); this.ui.bsSwitch.bootstrapSwitch();
}, },
saveQualityProfile: function () { saveQualityProfile: function () {

Loading…
Cancel
Save