Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/EnhancedUpload/resources/ui/widget/DetailsUploadWidget.js
Ðазад
window.enhancedUpload = window.enhancedUpload || {}; window.enhancedUpload.ui = window.enhancedUpload.ui || {}; window.enhancedUpload.ui.widget = window.enhancedUpload.ui.widget || {}; enhancedUpload.ui.widget.DetailsUploadWidget = function ( cfg ) { cfg = cfg || {}; enhancedUpload.ui.widget.DetailsUploadWidget.parent.call( this, cfg ); this.categoryInput = new OOJSPlus.ui.widget.CategoryMultiSelectWidget( { allowArbitrary: true, $overlay: this.$overlay } ); if ( cfg.categories ) { this.setDefaultCategories( cfg.categories ); } var categoryInputField = new OO.ui.FieldLayout( this.categoryInput, { label: mw.message( 'enhancedupload-details-categories-label' ).plain(), align: 'left' } ); this.descriptionInput = new OO.ui.MultilineTextInputWidget( { rows: 5 } ); if ( cfg.description ) { this.setDescription( cfg.description ); } var descriptionInputField = new OO.ui.FieldLayout( this.descriptionInput, { label: mw.message( 'enhancedupload-details-description-label' ).plain(), align: 'left' } ); this.detailsWidget = new OO.ui.Widget( { classes: [ 'details-widget' ] } ); this.$element.append( categoryInputField.$element ); this.$element.append( descriptionInputField.$element ); }; OO.inheritClass( enhancedUpload.ui.widget.DetailsUploadWidget, OO.ui.Widget ); enhancedUpload.ui.widget.DetailsUploadWidget.prototype.setToDefault = function () { this.descriptionInput.setValue( '' ); this.categoryInput.clearItems(); }; enhancedUpload.ui.widget.DetailsUploadWidget.prototype.getDescription = function () { return this.descriptionInput.getValue(); }; enhancedUpload.ui.widget.DetailsUploadWidget.prototype.setDescription = function ( description ) { this.descriptionInput.setValue( description ); }; enhancedUpload.ui.widget.DetailsUploadWidget.prototype.getCategories = function () { var categories = ''; for ( var i = 0; i < this.categoryInput.getSelectedCategories().length; i++ ) { var catText = this.categoryInput.getSelectedCategories()[ i ]; var catTitle = mw.Title.newFromText( catText, 14 ); var cat = '[[' + catTitle.getPrefixedText() + ']] '; categories += cat; } return categories; }; enhancedUpload.ui.widget.DetailsUploadWidget.prototype.setDefaultCategories = function ( category ) { var categories = []; categories = category.split( '|' ); this.categoryInput.setValue( categories ); };
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка