Call on ready, dont pollute window namespace with vars

This commit is contained in:
8chan 2014-09-27 20:04:57 +00:00 committed by czaks
parent c3ba4cc7ef
commit 035f8437ab

View File

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