MediaWiki:Mobile.js: различия между версиями
Перейти к навигации
Перейти к поиску
Shaseer (обсуждение | вклад) |
Shaseer (обсуждение | вклад) |
||
Строка 1: | Строка 1: | ||
/* Any JavaScript here will be loaded for users using the mobile site */ | /* Any JavaScript here will be loaded for users using the mobile site */ | ||
+ | mw.loader.implement("skins.minerva.talk", function($, jQuery, require, module) { | ||
+ | (function(M) { | ||
+ | function init() { | ||
+ | $talk.on('click', function() { | ||
+ | if ($talk.hasClass('add')) { | ||
+ | window.location.hash = '#/talk/new'; | ||
+ | } else { | ||
+ | window.location.hash = '#/talk'; | ||
+ | } | ||
+ | return false; | ||
+ | }); | ||
+ | } | ||
+ | } |
Версия 10:45, 12 октября 2019
/* Any JavaScript here will be loaded for users using the mobile site */ mw.loader.implement("skins.minerva.talk", function($, jQuery, require, module) { (function(M) { function init() { $talk.on('click', function() { if ($talk.hasClass('add')) { window.location.hash = '#/talk/new'; } else { window.location.hash = '#/talk'; } return false; }); } }