Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/resources/src/mediawiki.special.apisandbox/UploadSelectFileParamWidget.js
Ðазад
/** * A wrapper for OO.ui.SelectFileInputWidget * * @class * @private * @constructor */ function UploadSelectFileParamWidget() { UploadSelectFileParamWidget.super.call( this ); } OO.inheritClass( UploadSelectFileParamWidget, OO.ui.SelectFileInputWidget ); /** * @return {string} */ UploadSelectFileParamWidget.prototype.getApiValueForDisplay = function () { return '...'; }; /** * @return {boolean} */ UploadSelectFileParamWidget.prototype.requiresFormData = function () { return true; }; /** * @return {any} */ UploadSelectFileParamWidget.prototype.getApiValue = function () { return this.getValue(); }; /** * There should be `@param {any} newValue` but that results in * `no-unused-vars` eslint rule failing */ UploadSelectFileParamWidget.prototype.setApiValue = function () { // No-op }; /** * @param {boolean} shouldSuppressErrors * @return {jQuery.Promise} */ UploadSelectFileParamWidget.prototype.apiCheckValid = function ( shouldSuppressErrors ) { const ok = this.getValue() !== null && this.getValue() !== undefined || shouldSuppressErrors; this.info.setIcon( ok ? null : 'alert' ); this.setTitle( ok ? '' : mw.message( 'apisandbox-alert-field' ).plain() ); return $.Deferred().resolve( ok ).promise(); }; module.exports = UploadSelectFileParamWidget;
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка