mirror of
https://github.com/lidarr/lidarr.git
synced 2025-08-19 21:13:28 -07:00
fixed bootstrap switches. still need to listen to checkbox event.
This commit is contained in:
parent
d85b825e06
commit
27f45cfdee
7 changed files with 10 additions and 22 deletions
|
@ -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>
|
||||
|
|
|
@ -25,7 +25,6 @@ define([
|
|||
},
|
||||
|
||||
onRender: function () {
|
||||
this.ui.bsSwitch.bootstrapSwitch();
|
||||
this.ui.tooltip.tooltip({ placement: 'right', html: true });
|
||||
this.ui.pathInput.autoComplete('/directories');
|
||||
|
||||
|
|
|
@ -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 });
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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' });
|
||||
}
|
||||
});
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue