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 */ | ||
+ | $talk.on('click', function() { | ||
+ | if ($talk.hasClass('add')) { | ||
+ | window.location.hash = '#/talk/new'; | ||
+ | } else { | ||
+ | window.location.hash = '#/talk'; | ||
+ | } | ||
+ | return false; | ||
+ | }); |
Версия 10:26, 12 октября 2019
/* Any JavaScript here will be loaded for users using the mobile site */ $talk.on('click', function() { if ($talk.hasClass('add')) { window.location.hash = '#/talk/new'; } else { window.location.hash = '#/talk'; } return false; });