More JS linting.
This commit is contained in:
parent
2dc6e054c8
commit
31501e48fe
@ -1,3 +1,4 @@
|
|||||||
|
/*jshint bitwise:false, curly:true, eqeqeq:true, evil:true, forin:false, noarg:true, noempty:true, nonew:true, undef:false, strict:false, browser:true */
|
||||||
|
|
||||||
// Adding jQuery ui stuff
|
// Adding jQuery ui stuff
|
||||||
$(document).ready(function() {
|
$(document).ready(function() {
|
||||||
@ -49,7 +50,7 @@ $(document).ready(function() {
|
|||||||
if(sidebar_hidden.hasOwnProperty(i) && sidebar_hidden[i].length > 0) {
|
if(sidebar_hidden.hasOwnProperty(i) && sidebar_hidden[i].length > 0) {
|
||||||
$(sidebar_hidden[i]+" .blockbody").hide();
|
$(sidebar_hidden[i]+" .blockbody").hide();
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
}
|
}
|
||||||
catch(err) {
|
catch(err) {
|
||||||
var sidebar_hidden = [];
|
var sidebar_hidden = [];
|
||||||
@ -59,7 +60,7 @@ $(document).ready(function() {
|
|||||||
var tob = $(tid+" .blockbody");
|
var tob = $(tid+" .blockbody");
|
||||||
$(elm).click(function(e) {
|
$(elm).click(function(e) {
|
||||||
tob.slideToggle("slow");
|
tob.slideToggle("slow");
|
||||||
if(sidebar_hidden.indexOf(tid) == -1) {
|
if(sidebar_hidden.indexOf(tid) === -1) {
|
||||||
sidebar_hidden.push(tid);
|
sidebar_hidden.push(tid);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
@ -70,7 +71,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
$.cookie("ui-sidebar-hidden", sidebar_hidden.join("|"), {path: '/', expires: 365});
|
$.cookie("ui-sidebar-hidden", sidebar_hidden.join("|"), {path: '/', expires: 365});
|
||||||
})
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
$(".shm-unlocker").each(function(idx, elm) {
|
$(".shm-unlocker").each(function(idx, elm) {
|
||||||
@ -143,9 +144,9 @@ function getCookie( name ) {
|
|||||||
if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
|
if ( ( !start ) && ( name != document.cookie.substring( 0, name.length ) ) ) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
if ( start == -1 ) return null;
|
if ( start === -1 ) { return null; }
|
||||||
var end = document.cookie.indexOf( ";", len );
|
var end = document.cookie.indexOf( ";", len );
|
||||||
if ( end == -1 ) end = document.cookie.length;
|
if ( end === -1 ) { end = document.cookie.length; }
|
||||||
return unescape( document.cookie.substring( len, end ) );
|
return unescape( document.cookie.substring( len, end ) );
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -164,10 +165,11 @@ function setCookie( name, value, expires, path, domain, secure ) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function deleteCookie( name, path, domain ) {
|
function deleteCookie( name, path, domain ) {
|
||||||
if ( getCookie( name ) ) document.cookie = name + "=" +
|
if ( getCookie( name ) ) { document.cookie = name + "=" +
|
||||||
( ( path ) ? ";path=" + path : "") +
|
( ( path ) ? ";path=" + path : "") +
|
||||||
( ( domain ) ? ";domain=" + domain : "" ) +
|
( ( domain ) ? ";domain=" + domain : "" ) +
|
||||||
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
|
";expires=Thu, 01-Jan-1970 00:00:01 GMT";
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
function replyTo(imageId, commentId, userId) {
|
function replyTo(imageId, commentId, userId) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user