-
-
-
diff --git a/UI/Settings/General/GeneralView.js b/UI/Settings/General/GeneralView.js
index 4088bc13e..56900fb50 100644
--- a/UI/Settings/General/GeneralView.js
+++ b/UI/Settings/General/GeneralView.js
@@ -1,10 +1,43 @@
'use strict';
-define(['marionette', 'Mixins/AsModelBoundView'], function (Marionette, AsModelBoundView) {
- var view = Marionette.ItemView.extend({
- template: 'Settings/General/GeneralTemplate'
- }
- );
-
- return AsModelBoundView.call(view);
-});
+define(
+ [
+ 'marionette',
+ 'Mixins/AsModelBoundView'
+ ], function (Marionette, AsModelBoundView) {
+ var view = Marionette.ItemView.extend({
+ template: 'Settings/General/GeneralTemplate',
+
+ events: {
+ 'change .x-auth': '_setAuthOptionsVisibility'
+ },
+
+ ui: {
+ authToggle : '.x-auth',
+ authOptions: '.x-auth-options'
+ },
+
+
+ onRender: function(){
+ if(!this.ui.authToggle.prop('checked')){
+ this.ui.authOptions.hide();
+ }
+ },
+
+ _setAuthOptionsVisibility: function () {
+
+ var showAuthOptions = this.ui.authToggle.prop('checked');
+
+ if (showAuthOptions) {
+ this.ui.authOptions.slideDown();
+ }
+
+ else {
+ this.ui.authOptions.slideUp();
+ }
+ }
+
+ });
+
+ return AsModelBoundView.call(view);
+ });
diff --git a/UI/Settings/MediaManagement/Naming/View.js b/UI/Settings/MediaManagement/Naming/View.js
index 0a7ee87af..96c5fee14 100644
--- a/UI/Settings/MediaManagement/Naming/View.js
+++ b/UI/Settings/MediaManagement/Naming/View.js
@@ -1,4 +1,4 @@
-'use strict';
+'use strict';
define(
[
'marionette',
@@ -9,32 +9,28 @@ define(
template: 'Settings/MediaManagement/Naming/ViewTemplate',
ui: {
- namingOptions : '.x-naming-options',
- renameEpisodesCheckbox : '.x-rename-episodes'
+ namingOptions : '.x-naming-options',
+ renameEpisodesCheckbox: '.x-rename-episodes'
},
events: {
- 'change .x-rename-episodes': '_toggleNamingOptions'
+ 'change .x-rename-episodes': '_setNamingOptionsVisibility'
},
- onShow: function () {
- var renameEpisodes = this.model.get('renameEpisodes');
- this._setNamingOptionsVisibility(renameEpisodes);
+ onRender: function(){
+ if(!this.model.get('renameEpisodes')){
+ this.ui.namingOptions.hide();
+ }
},
- _toggleNamingOptions: function() {
+ _setNamingOptionsVisibility: function () {
var checked = this.ui.renameEpisodesCheckbox.prop('checked');
- this._setNamingOptionsVisibility(checked);
- },
-
- _setNamingOptionsVisibility: function (showNamingOptions) {
-
- if (showNamingOptions) {
- this.ui.namingOptions.show();
+ if (checked) {
+ this.ui.namingOptions.slideDown();
}
else {
- this.ui.namingOptions.hide();
+ this.ui.namingOptions.slideUp();
}
}
});
diff --git a/UI/Settings/Quality/QualityLayoutTemplate.html b/UI/Settings/Quality/QualityLayoutTemplate.html
index d37e62b1d..b1f7ec6d5 100644
--- a/UI/Settings/Quality/QualityLayoutTemplate.html
+++ b/UI/Settings/Quality/QualityLayoutTemplate.html
@@ -1,6 +1,6 @@
-
+