|
@@ -74,11 +74,11 @@ export default {
|
74
|
74
|
}
|
75
|
75
|
});
|
76
|
76
|
|
77
|
|
- // Only show the subtitle if this is the only setting section.
|
|
77
|
+ // Only show the subtitle if this isn't the only setting section.
|
78
|
78
|
if (interfaceConfig.SETTINGS_SECTIONS.length > 1)
|
79
|
|
- UIUtil.showHiddenElement("deviceOptionsTitle");
|
|
79
|
+ UIUtil.showElement("deviceOptionsTitle");
|
80
|
80
|
|
81
|
|
- UIUtil.showHiddenElement("devicesOptions");
|
|
81
|
+ UIUtil.showElement("devicesOptions");
|
82
|
82
|
}
|
83
|
83
|
|
84
|
84
|
if (UIUtil.isSettingEnabled('language')) {
|
|
@@ -93,7 +93,7 @@ export default {
|
93
|
93
|
emitter.emit(UIEvents.LANG_CHANGED, languagesBox.val());
|
94
|
94
|
});
|
95
|
95
|
|
96
|
|
- UIUtil.showHiddenElement("languages_selectbox");
|
|
96
|
+ UIUtil.showElement("languages_selectbox");
|
97
|
97
|
}
|
98
|
98
|
|
99
|
99
|
if (UIUtil.isSettingEnabled('moderator')) {
|
|
@@ -116,13 +116,6 @@ export default {
|
116
|
116
|
isFollowMeEnabled
|
117
|
117
|
);
|
118
|
118
|
});
|
119
|
|
-
|
120
|
|
- // Only show the subtitle if this is the only setting section.
|
121
|
|
- if (interfaceConfig.SETTINGS_SECTIONS.length > 1)
|
122
|
|
- UIUtil.showHiddenElement("moderatorOptionsTitle");
|
123
|
|
-
|
124
|
|
- UIUtil.showHiddenElement("startMutedOptions");
|
125
|
|
- UIUtil.showHiddenElement("followMeOptions");
|
126
|
119
|
}
|
127
|
120
|
},
|
128
|
121
|
|
|
@@ -155,10 +148,21 @@ export default {
|
155
|
148
|
* @param {boolean} show
|
156
|
149
|
*/
|
157
|
150
|
showStartMutedOptions (show) {
|
158
|
|
- if (show) {
|
159
|
|
- $("#startMutedOptions").css("display", "block");
|
|
151
|
+ console.log("------", show, UIUtil.isSettingEnabled('moderator'));
|
|
152
|
+ if (show && UIUtil.isSettingEnabled('moderator')) {
|
|
153
|
+ console.log("idva li tuuk");
|
|
154
|
+ // Only show the subtitle if this isn't the only setting section.
|
|
155
|
+ if (!$("#moderatorOptionsTitle").is(":visible")
|
|
156
|
+ && interfaceConfig.SETTINGS_SECTIONS.length > 1)
|
|
157
|
+ UIUtil.showElement("moderatorOptionsTitle");
|
|
158
|
+
|
|
159
|
+ UIUtil.showElement("startMutedOptions");
|
160
|
160
|
} else {
|
161
|
|
- $("#startMutedOptions").css("display", "none");
|
|
161
|
+ // Only show the subtitle if this isn't the only setting section.
|
|
162
|
+ if ($("#moderatorOptionsTitle").is(":visible"))
|
|
163
|
+ UIUtil.hideElement("moderatorOptionsTitle");
|
|
164
|
+
|
|
165
|
+ UIUtil.hideElement("startMutedOptions");
|
162
|
166
|
}
|
163
|
167
|
},
|
164
|
168
|
|
|
@@ -173,10 +177,10 @@ export default {
|
173
|
177
|
* @param {boolean} show {true} to show those options, {false} to hide them
|
174
|
178
|
*/
|
175
|
179
|
showFollowMeOptions (show) {
|
176
|
|
- if (show) {
|
177
|
|
- $("#followMeOptions").css("display", "block");
|
|
180
|
+ if (show && UIUtil.isSettingEnabled('moderator')) {
|
|
181
|
+ UIUtil.showElement("followMeOptions");
|
178
|
182
|
} else {
|
179
|
|
- $("#followMeOptions").css("display", "none");
|
|
183
|
+ UIUtil.hideElement("followMeOptions");
|
180
|
184
|
}
|
181
|
185
|
},
|
182
|
186
|
|