Open main menu
Home
Random
Log in
Settings
About wiki
Terms and conditions of use
wiki
Search
Changes
← Older edit
Newer edit →
MediaWiki:Common.js
(view source)
Revision as of 22:49, 18 April 2018
3 bytes added
,
22:49, 18 April 2018
no edit summary
Line 13:
Line 13:
document.cookie = name + "=" + escape(value) + ";path=/" + ";expires=" + expires_date.toGMTString() + ";domain=.gccollab.ca;";
document.cookie = name + "=" + escape(value) + ";path=/" + ";expires=" + expires_date.toGMTString() + ";domain=.gccollab.ca;";
}
}
+
+
$( document ).ready(function() {
var lang = getCookie('lang');
var lang = getCookie('lang');
Line 143:
Line 145:
mw.hook('mw.uls.language.revert').add(function (e){
mw.hook('mw.uls.language.revert').add(function (e){
−
console.log(e
);
+
console.log(
'revert: ' +
e);
−
console.log(e.target
);
});
});
$('a.uls-prevlang-link').on('click.ulstipsy', function(e){
$('a.uls-prevlang-link').on('click.ulstipsy', function(e){
−
console.log(e
.target
);
+
console.log(
'ulstipsy: ' +
e);
−
var lang = e.target.lang
;
+
})
;
+
});
});
Mark.wooff
Bureaucrats
,
Administrators
55
edits