1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-02-07 23:21:28 +01:00

Call on ready, dont pollute window namespace with vars

This commit is contained in:
8chan 2014-09-27 20:04:57 +00:00
parent 98209fc806
commit 4208c16f61

View File

@ -1,3 +1,5 @@
if (active_page == 'thread' || active_page == 'index') {
$(document).ready(function(){
$.hash = function(str) { $.hash = function(str) {
var i, j, msg = 0; var i, j, msg = 0;
@ -31,4 +33,5 @@ $(".poster_id").each(function(){
"color": "white" "color": "white"
}); });
}); });
});
}