</nav>
</header>
-<p class="info">{lang}wcf.acp.style.protected{/lang}</p>
+{if !$isTainted}
+ <p class="info">{lang}wcf.acp.style.protected{/lang}</p>
+{/if}
{include file='formError'}
</dl>
<div class="formSubmit">
- <button id="styleDisableProtectionSubmit" disabled>{lang}wcf.global.button.submit{/lang}</button>
+ <button id="styleDisableProtectionSubmit" class="buttonPrimary" disabled>{lang}wcf.global.button.submit{/lang}</button>
</div>
</div>
/**
- * Provides the basic core functionality.
+ * Provides the style editor.
*
* @author Alexander Ebert
- * @copyright 2001-2015 WoltLab GmbH
+ * @copyright 2001-2016 WoltLab GmbH
* @license GNU Lesser General Public License <http://opensource.org/licenses/lgpl-license.php>
- * @module WoltLab/WCF/Core
+ * @module WoltLab/WCF/Acp/Ui/Style/Editor
*/
define(['Ajax', 'Dictionary', 'Dom/Util', 'EventHandler'], function(Ajax, Dictionary, DomUtil, EventHandler) {
"use strict";
*/
setup: function(options) {
this._handleLayoutWidth();
- this._handleLess(options.isTainted);
+ this._handleScss(options.isTainted);
if (!options.isTainted) {
this._handleProtection(options.styleId);
},
/**
- * Handles LESS input fields.
+ * Handles SCSS input fields.
*
* @param {boolean} isTainted false if style is in protected mode
*/
- _handleLess: function(isTainted) {
+ _handleScss: function(isTainted) {
var individualScss = elById('individualScss');
var overrideScss = elById('overrideScss');
* @param {object<string, *>} options request options
*/
apiOnce: function(options) {
+ // Fetch AjaxRequest, as it cannot be provided because of a circular dependency
+ if (AjaxRequest === undefined) AjaxRequest = require('AjaxRequest');
+
options.pinData = false;
options.callbackObject = null;
if (!options.url) options.url = 'index.php/AJAXProxy/?t=' + SECURITY_TOKEN;