Some more JS linting.
This commit is contained in:
parent
887f963e17
commit
a105090039
@ -11,7 +11,7 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
if($.cookie("ui-blotter2-hidden") == 'true') {
|
if($.cookie("ui-blotter2-hidden") === 'true') {
|
||||||
$(".shm-blotter2").hide();
|
$(".shm-blotter2").hide();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -1,16 +1,18 @@
|
|||||||
|
/*jshint bitwise:true, curly:true, forin:false, noarg:true, noempty:true, nonew:true, undef:true, strict:false, browser:true, jquery:true */
|
||||||
|
|
||||||
Array.prototype.editcloud_contains = function (ele) {
|
Array.prototype.editcloud_contains = function (ele) {
|
||||||
for (var i = 0; i < this.length; i++) {
|
for (var i = 0; i < this.length; i++) {
|
||||||
if (this[i] == ele) {
|
if (this[i] === ele) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
};
|
};
|
||||||
Array.prototype.editcloud_remove = function (ele) {
|
Array.prototype.editcloud_remove = function (ele) {
|
||||||
var arr = new Array();
|
var arr = [];
|
||||||
var count = 0;
|
var count = 0;
|
||||||
for (var i = 0; i < this.length; i++) {
|
for (var i = 0; i < this.length; i++) {
|
||||||
if (this[i] != ele) {
|
if (this[i] !== ele) {
|
||||||
arr[count] = this[i];
|
arr[count] = this[i];
|
||||||
count++;
|
count++;
|
||||||
}
|
}
|
||||||
@ -25,8 +27,8 @@ function tageditcloud_toggle_extra(hide) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
var el = document.getElementById('tagcloud_extra');
|
var el = document.getElementById('tagcloud_extra');
|
||||||
el.style.display = (el.style.display != 'none' ? 'none' : '' );
|
el.style.display = (el.style.display !== 'none' ? 'none' : '' );
|
||||||
hide.innerHTML = (el.style.display != 'none' ? 'show fewer tags' : hide_text );
|
hide.innerHTML = (el.style.display !== 'none' ? 'show fewer tags' : hide_text );
|
||||||
}
|
}
|
||||||
|
|
||||||
function tageditcloud_toggle_tag(ele,fullTag) {
|
function tageditcloud_toggle_tag(ele,fullTag) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user