mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
fixed bootstrap switches. still need to listen to checkbox event.
This commit is contained in:
@@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user