Skip to content

Commit

Permalink
Item10262: Tabpane script assumes $.log exists
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@10550 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
ArthurClemens authored and ArthurClemens committed Jan 15, 2011
1 parent 23f1053 commit 2ad2a28
Showing 1 changed file with 5 additions and 4 deletions.
Expand Up @@ -21,19 +21,20 @@ if (foswiki.preferences === undefined) {
/*
Set 'has javascript' (classname 'foswikiJs') to document as quickly as possible
*/
if (document.documentElement)
if (document.documentElement) {
$(document.documentElement).addClass('foswikiJs');
$(document.documentElement).removeClass('foswikiNoJs');
}

/**
* generates an unique ID.
*/
foswiki.getUniqueID = function() {
var uid = new Date().getTime().toString(32), i;

var uid = new Date().getTime().toString(32)i;
var i;
for (i = 0; i < 5; i++) {
uid += Math.floor(Math.random() * 65535).toString(32);
}

return uid;
};

Expand Down

0 comments on commit 2ad2a28

Please sign in to comment.