Файловый менеджер - Редактировать - /var/www/html/components/com_community/assets/source/js/popups/user.block.js
Ðазад
(function( root, $, factory ) { joms.popup || (joms.popup = {}); joms.popup.user || (joms.popup.user = {}); joms.popup.user.block = factory( root, $ ); define([ 'utils/popup' ], function() { return joms.popup.user.block; }); })( window, joms.jQuery, function( window ) { var popup, elem, id; function render( _popup, _id ) { if ( elem ) elem.off(); popup = _popup; id = _id; joms.ajax({ func: 'profile,ajaxConfirmBlockUser', data: [ id ], callback: function( json ) { popup.items[0] = { type: 'inline', src: buildHtml( json ) }; popup.updateItemHTML(); elem = popup.contentContainer; elem.on( 'click', '.joms-js--button-cancel', cancel ); elem.on( 'click', '.joms-js--button-save', save ); } }); } function cancel() { elem.off(); popup.close(); } function save() { joms.ajax({ func: 'profile,ajaxBlockUser', data: [ id ], callback: function( json ) { if ( !json.success ) { elem.find('.joms-popup__action').hide(); elem.find('.joms-popup__content').html( json.error ); return; } popup.close(); window.location.reload(); } }); } function buildHtml( json ) { var action; json || (json = {}); if ( json.error ) { action = [ '<div class="joms-popup__action">', '<button class="joms-button--neutral joms-button--small joms-js--button-cancel">', json.btnClose, '</button>', '</div>' ].join(''); } else { action = [ '<div class="joms-popup__action">', '<a href="javascript:" class="joms-button--neutral joms-button--small joms-left joms-js--button-cancel">', json.btnNo, '</a> ', '<button class="joms-button--primary joms-button--small joms-js--button-save">', json.btnYes, '</button>', '</div>' ].join(''); } return [ '<div class="joms-popup joms-popup--whiteblock">', '<div class="joms-popup__title"><button class="mfp-close" type="button" title="',window.joms_lang.COM_COMMUNITY_CLOSE_BUTTON_TITLE,'">×</button>', json.title, '</div>', '<div class="joms-popup__content">', ( json.error || json.html || json.message ), '</div>', action, '</div>' ].join(''); } // Exports. return function( id ) { joms.util.popup.prepare(function( mfp ) { render( mfp, id ); }); }; });
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка