Файловый менеджер - Редактировать - /var/www/html/mediawiki-1.43.1/extensions/CheckUser/modules/ext.checkUser/investigate/resetGuidedTour.js
Ðазад
function resetGuidedTour( clickedLink ) { var api = new mw.Api(); var redirectTarget = clickedLink.attr( 'href' ); var options = { 'checkuser-investigate-tour-seen': null }; if ( clickedLink.hasClass( 'ext-checkuser-investigate-reset-form-guided-tour' ) ) { // Only reset the form guided tour if specifically requested. options[ 'checkuser-investigate-form-tour-seen' ] = null; } api.saveOptions( options ).then( function () { // Now that the preference is saved, refresh the page so that the // ResourceLoader modules get loaded and the tour gets shown. window.location.href = redirectTarget; } ); } /** * Sets up event listeners for the links that reset the guided tours. */ function setUpResetGuidedTourLinks() { $( '.ext-checkuser-investigate-reset-guided-tour' ).on( 'click', function ( event ) { event.preventDefault(); resetGuidedTour( $( this ) ); } ); } module.exports = setUpResetGuidedTourLinks;
| ver. 1.1 | |
.
| PHP 8.4.18 | Ð“ÐµÐ½ÐµÑ€Ð°Ñ†Ð¸Ñ Ñтраницы: 0 |
proxy
|
phpinfo
|
ÐаÑтройка