| Línea 162... |
Línea 162... |
| 162 |
for (let button of buttons) {
|
162 |
for (let button of buttons) {
|
| 163 |
button.addEventListener("change", buttonPressed);
|
163 |
button.addEventListener("change", buttonPressed);
|
| 164 |
}
|
164 |
}
|
| 165 |
}
|
165 |
}
|
| 166 |
</script>
|
166 |
</script>
|
| - |
|
167 |
{{#js}}
|
| - |
|
168 |
require(['jquery'], function($) {
|
| - |
|
169 |
$(document).ready(function(){
|
| - |
|
170 |
$("#page-admin-setting-themesettinguniverse .tab-pane .rui-setting-heading-wrapper").nextUntil("#page-admin-setting-themesettinguniverse .tab-pane .rui-setting-heading-wrapper").addClass("hidden");
|
| - |
|
171 |
});
|
| - |
|
172 |
$("#page-admin-setting-themesettinguniverse .tab-pane .rui-setting-heading-wrapper").click(function() {
|
| - |
|
173 |
$(this).nextUntil("#page-admin-setting-themesettinguniverse .rui-setting-heading-wrapper").toggleClass("hidden");
|
| - |
|
174 |
$(this).toggleClass("active");
|
| - |
|
175 |
});
|
| - |
|
176 |
|
| - |
|
177 |
var $wrapper = $('#theme_universe_scb');
|
| - |
|
178 |
$wrapper.find('.rui-settings-item').sort(function (a, b) {
|
| - |
|
179 |
return +a.dataset.blockPosition - +b.dataset.blockPosition;
|
| - |
|
180 |
}).appendTo( $wrapper );
|
| 167 |
|
181 |
|
| - |
|
182 |
|
| - |
|
183 |
$( '[id^="id_s_theme_universe_block"]' ).on( "change", function() {
|
| - |
|
184 |
var $wrapper = $('#theme_universe_scb');
|
| - |
|
185 |
$wrapper.find('.rui-settings-item').sort(function (a, b) {
|
| - |
|
186 |
return +a.dataset.blockPosition - +b.dataset.blockPosition;
|
| - |
|
187 |
}).appendTo( $wrapper );
|
| - |
|
188 |
});
|
| - |
|
189 |
});
|
| - |
|
190 |
{{/js}}
|
| 168 |
</body>
|
191 |
</body>
|
| 169 |
</html>
|
192 |
</html>
|
| 170 |
{{#js}}
|
193 |
{{#js}}
|
| 171 |
M.util.js_pending('theme_universe/loader');
|
194 |
M.util.js_pending('theme_boost/loader');
|
| 172 |
require(['theme_universe/loader', 'theme_universe/drawer', 'jquery'], function(Loader, Drawer, $) {
|
195 |
require(['theme_boost/loader', 'theme_universe/drawer'], function(Loader, Drawer) {
|
| 173 |
Drawer.init();
|
196 |
Drawer.init();
|
| 174 |
M.util.js_complete('theme_universe/loader');
|
197 |
M.util.js_complete('theme_boost/loader');
|
| 175 |
|
- |
|
| 176 |
$(document).ready(function(){
|
- |
|
| 177 |
$("#page-admin-setting-themesettinguniverse .tab-pane .rui-setting-heading-wrapper").nextUntil("#page-admin-setting-themesettinguniverse .tab-pane .rui-setting-heading-wrapper").addClass("hidden");
|
- |
|
| 178 |
});
|
- |
|
| 179 |
|
- |
|
| 180 |
$("#page-admin-setting-themesettinguniverse .tab-pane .rui-setting-heading-wrapper").click(function() {
|
- |
|
| 181 |
$(this).nextUntil("#page-admin-setting-themesettinguniverse .rui-setting-heading-wrapper").toggleClass("hidden");
|
- |
|
| 182 |
$(this).toggleClass("active");
|
- |
|
| 183 |
});
|
- |
|
| 184 |
|
- |
|
| 185 |
var $wrapper = $('#theme_universe_scb');
|
- |
|
| 186 |
$wrapper.find('.rui-settings-item').sort(function (a, b) {
|
- |
|
| 187 |
return +a.dataset.blockPosition - +b.dataset.blockPosition;
|
- |
|
| 188 |
}).appendTo( $wrapper );
|
- |
|
| 189 |
|
- |
|
| 190 |
|
- |
|
| 191 |
$( '[id^="id_s_theme_universe_block"]' ).on( "change", function() {
|
- |
|
| 192 |
var $wrapper = $('#theme_universe_scb');
|
- |
|
| 193 |
$wrapper.find('.rui-settings-item').sort(function (a, b) {
|
- |
|
| 194 |
return +a.dataset.blockPosition - +b.dataset.blockPosition;
|
- |
|
| 195 |
}).appendTo( $wrapper );
|
- |
|
| 196 |
});
|
- |
|
| 197 |
});
|
198 |
});
|
| 198 |
{{/js}}
|
199 |
{{/js}}
|