Файловый менеджер - Редактировать - /var/www/html/components/com_community/assets/postbox/js/views/widget/select.js
Ðазад
define('views/widget/select',[ 'sandbox', 'views/base', 'utils/language' ], // definition // ---------- function( $, BaseView, language ) { return BaseView.extend({ template: joms.jst[ 'html/widget/select' ], events: { 'click span': 'toggle', 'click svg': 'toggle', 'click li': 'onSelect' }, initialize: function( options ) { this.options = options.options || []; if ( +options.width ) this.width = +options.width + 'px'; }, render: function() { var data = {}; data.options = this.options; data.width = this.width || false; data.placeholder = language.get('select_category'); this.$el.html( this.template( data ) ); this.$span = this.$('span'); this.$ul = this.$('ul'); if ( data.options ) { if ( data.options.length > 6 ) { this.$ul.css({ height: '175px', overflowY: 'auto' }); } } }, select: function( value, text ) { this.$span.html( text ); this.$span.data( 'value', value ); this.trigger( 'select', value, text ); }, toggle: function() { this.$ul.toggle(); }, value: function() { return this.$span.data('value'); }, reset: function() { this.$ul && this.$ul.hide(); if ( this.options && this.options.length ) { this.$span.html( this.options[0][1] ); this.$span.data( 'value', this.options[0][0] ); } }, onSelect: function( e ) { var el = $( e.currentTarget ), value = el.data('value'), text = el.html(); this.select( value, text ); this.toggle(); } }); });
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка