Thread: [Phpsysinfo-subversion] SF.net SVN: phpsysinfo:[175] js/phpSysInfo/phpsysinfo.js
Brought to you by:
namiltd
From: <Jac...@us...> - 2009-03-30 18:48:37
|
Revision: 175 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=175&view=rev Author: Jacky672 Date: 2009-03-30 18:48:29 +0000 (Mon, 30 Mar 2009) Log Message: ----------- Fix a problem with the UptimeFormat function (minutes and hours) Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-03-30 14:19:26 UTC (rev 174) +++ js/phpSysInfo/phpsysinfo.js 2009-03-30 18:48:29 UTC (rev 175) @@ -353,7 +353,7 @@ if (intHours) { txt += intHours.toString() + " " + genlang(49, false) + " "; } - return txt + intMin.toString() + " " + genlang(48, false); + return txt + intMin.toString() + " " + genlang(50, false); } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <Jac...@us...> - 2009-03-30 18:58:03
|
Revision: 176 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=176&view=rev Author: Jacky672 Date: 2009-03-30 18:57:53 +0000 (Mon, 30 Mar 2009) Log Message: ----------- Cache L2 is return in KiB, so we need to multiply by 1024 before call formatBytes function or return it in bytes ? Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-03-30 18:48:29 UTC (rev 175) +++ js/phpSysInfo/phpsysinfo.js 2009-03-30 18:57:53 UTC (rev 176) @@ -615,7 +615,7 @@ $("#s_model").html(model); $("#s_speed").html(speed.toString() === "NaN" ? 0 : formatHertz(speed)); $("#s_bus").html(bus.toString() === "NaN" ? 0 : formatHertz(bus)); - $("#s_cache").html(cache.toString() === "NaN" ? 0 : formatBytes(cache)); + $("#s_cache").html(cache.toString() === "NaN" ? 0 : formatBytes(cache*1024)); $("#s_bogo").html(bogo.toString() === "NaN" ? 0 : bogo.toString()); }); popDevices('pciTable', 'PCI', hardware); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jac...@us...> - 2009-04-12 17:39:12
|
Revision: 180 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=180&view=rev Author: jacky672 Date: 2009-04-12 17:39:09 +0000 (Sun, 12 Apr 2009) Log Message: ----------- Loading and changing language more faster (EXPERIMENTAL, need to be testing) Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-04-01 17:44:09 UTC (rev 179) +++ js/phpSysInfo/phpsysinfo.js 2009-04-12 17:39:09 UTC (rev 180) @@ -24,6 +24,7 @@ /*global $, jQuery */ var langxml = [], langcounter = 1, filesystemTable, cookie_language = "", cookie_template = "", plugin_liste = []; +var langarr = new Array(); /** * generate a cookie, if not exist, and add an entry to it<br><br> * inspired by <a href="http://www.quirksmode.org/js/cookies.html">http://www.quirksmode.org/js/cookies.html</a> @@ -133,6 +134,17 @@ }, success: function buildblocks(xml) { langxml[plugname] = xml; + var idexp,id; + + if (langarr[plugname] === undefined) { + langarr.push(plugname); + langarr[plugname] = new Array(); + } + + $("expression", langxml[plugname]).each(function langstore(id) { + idexp = $("expression", xml).get(id); + langarr[plugname][this.getAttribute('id')] = $("exp", idexp).text().toString(); + }); } }); } @@ -155,7 +167,7 @@ langxml.push(plugname); getLanguage(cookie_language, plugin, plugname); } - return $("expression[id=" + langId.toString() + "] exp", langxml[plugname]).text().toString(); + return langarr[plugname][langId.toString()]; } /** This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jac...@us...> - 2009-04-13 16:20:48
|
Revision: 182 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=182&view=rev Author: jacky672 Date: 2009-04-13 16:20:42 +0000 (Mon, 13 Apr 2009) Log Message: ----------- jslint my patch Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-04-12 17:55:13 UTC (rev 181) +++ js/phpSysInfo/phpsysinfo.js 2009-04-13 16:20:42 UTC (rev 182) @@ -24,7 +24,7 @@ /*global $, jQuery */ var langxml = [], langcounter = 1, filesystemTable, cookie_language = "", cookie_template = "", plugin_liste = []; -var langarr = new Array(); +var langarr = []; /** * generate a cookie, if not exist, and add an entry to it<br><br> * inspired by <a href="http://www.quirksmode.org/js/cookies.html">http://www.quirksmode.org/js/cookies.html</a> @@ -138,7 +138,7 @@ if (langarr[plugname] === undefined) { langarr.push(plugname); - langarr[plugname] = new Array(); + langarr[plugname] = []; } $("expression", langxml[plugname]).each(function langstore(id) { This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jac...@us...> - 2009-04-13 17:00:47
|
Revision: 183 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=183&view=rev Author: jacky672 Date: 2009-04-13 17:00:44 +0000 (Mon, 13 Apr 2009) Log Message: ----------- Dirty patch to fix JS crash Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-04-13 16:20:42 UTC (rev 182) +++ js/phpSysInfo/phpsysinfo.js 2009-04-13 17:00:44 UTC (rev 183) @@ -225,8 +225,10 @@ langId = langId.substring(0, langId.indexOf('-')); //remove the unique identifier } langStr = getTranslationString(langId, plugin); - if (langStr.length > 0) { - this.innerHTML = langStr; + if(langStr != undefined) { + if (langStr.length > 0) { + this.innerHTML = langStr; + } } }); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <big...@us...> - 2009-04-13 18:11:09
|
Revision: 184 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=184&view=rev Author: bigmichi1 Date: 2009-04-13 18:10:48 +0000 (Mon, 13 Apr 2009) Log Message: ----------- indention Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-04-13 17:00:44 UTC (rev 183) +++ js/phpSysInfo/phpsysinfo.js 2009-04-13 18:10:48 UTC (rev 184) @@ -133,14 +133,12 @@ $.jGrowl("Error loading language!"); }, success: function buildblocks(xml) { + var idexp; langxml[plugname] = xml; - var idexp,id; - if (langarr[plugname] === undefined) { langarr.push(plugname); langarr[plugname] = []; } - $("expression", langxml[plugname]).each(function langstore(id) { idexp = $("expression", xml).get(id); langarr[plugname][this.getAttribute('id')] = $("exp", idexp).text().toString(); @@ -225,7 +223,7 @@ langId = langId.substring(0, langId.indexOf('-')); //remove the unique identifier } langStr = getTranslationString(langId, plugin); - if(langStr != undefined) { + if (langStr !== undefined) { if (langStr.length > 0) { this.innerHTML = langStr; } @@ -970,7 +968,7 @@ var options, refresh = ""; $("Options", xml).each(function getRefreshTime(id) { options = $("Options", xml).get(id); - refresh = $("refresh", options).text(); + refresh = $("refresh", options).text().toString(); if (refresh !== '0') { $.timer(refresh, reload); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <big...@us...> - 2009-04-17 07:16:39
|
Revision: 189 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=189&view=rev Author: bigmichi1 Date: 2009-04-17 07:16:26 +0000 (Fri, 17 Apr 2009) Log Message: ----------- Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-04-17 07:02:09 UTC (rev 188) +++ js/phpSysInfo/phpsysinfo.js 2009-04-17 07:16:26 UTC (rev 189) @@ -142,7 +142,7 @@ $("expression", langxml[plugname]).each(function langstore(id) { idexp = $("expression", xml).get(id); langarr[plugname][this.getAttribute('id')] = $("exp", idexp).text().toString(); - }); + }); } }); } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jac...@us...> - 2009-06-10 14:19:02
|
Revision: 247 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=247&view=rev Author: jacky672 Date: 2009-06-10 13:37:02 +0000 (Wed, 10 Jun 2009) Log Message: ----------- Fix latest refresh date (no need +1900 in JS ? ) : http://www.toutjavascript.com/reference/reference.php?iref=105 Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-06-10 13:27:43 UTC (rev 246) +++ js/phpSysInfo/phpsysinfo.js 2009-06-10 13:37:02 UTC (rev 247) @@ -1147,7 +1147,7 @@ date = new Date(); day = date.getDate(); month = date.getMonth() + 1; - year = date.getFullYear() + 1900; + year = date.getFullYear(); hour = date.getHours(); minute = date.getMinutes(); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <big...@us...> - 2009-06-24 06:30:23
|
Revision: 270 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=270&view=rev Author: bigmichi1 Date: 2009-06-24 06:29:22 +0000 (Wed, 24 Jun 2009) Log Message: ----------- fix error display in dynamic mode Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-06-24 06:18:12 UTC (rev 269) +++ js/phpSysInfo/phpsysinfo.js 2009-06-24 06:29:22 UTC (rev 270) @@ -306,14 +306,13 @@ * @param {jQuery} xml phpSysInfo-XML */ function populateErrors(xml) { - var errors = 0, error; - errors = $("Error", xml).length; - if (errors > 0) { - $("#errorlist").empty(); - $("Error", xml).each(function getError(id) { - error = $("Error", xml).get(id); - $("#errorlist").append("<b>" + $("Function", error).text().toString() + "</b><br/><br/><pre>" + $("Message", error).text().toString() + "</pre><hr>"); - }); + var values = false; + $("#errorlist").empty(); + $("Errors Error", xml).each(function getError(id) { + $("#errorlist").append("<b>" + $(this).attr("Function") + "</b><br/><br/><pre>" + $(this).text() + "</pre><hr>"); + values = true; + }); + if (values) { $("#warn").css("display", "inline"); } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <jac...@us...> - 2009-06-25 04:22:16
|
Revision: 275 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=275&view=rev Author: jacky672 Date: 2009-06-25 04:22:15 +0000 (Thu, 25 Jun 2009) Log Message: ----------- Fix CpuSpeed and BusSpeed don't display Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-06-24 12:34:36 UTC (rev 274) +++ js/phpSysInfo/phpsysinfo.js 2009-06-25 04:22:15 UTC (rev 275) @@ -588,9 +588,9 @@ var model = "", speed = 0, bus = 0, cache = 0, bogo = 0, temp = 0, load = 0, cpucoreposition = 0; cpucount += 1; model = $(this).attr("Model"); - speed = parseInt($(this).attr("Cpuspeed"), 10); + speed = parseInt($(this).attr("CpuSpeed"), 10); cache = parseInt($(this).attr("Cache"), 10); - bus = parseInt($(this).attr("Busspeed"), 10); + bus = parseInt($(this).attr("BusSpeed"), 10); temp = parseInt($(this).attr("Cputemp"), 10); bogo = parseInt($(this).attr("Bogomips"), 10); load = parseInt($(this).attr("Load"), 10); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <big...@us...> - 2009-07-16 11:15:58
|
Revision: 299 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=299&view=rev Author: bigmichi1 Date: 2009-07-16 11:15:47 +0000 (Thu, 16 Jul 2009) Log Message: ----------- doc update Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-07-13 19:05:37 UTC (rev 298) +++ js/phpSysInfo/phpsysinfo.js 2009-07-16 11:15:47 UTC (rev 299) @@ -148,7 +148,7 @@ /** * internal function to get a given translation out of the translation file - * @param {Number} langID id of the translation expression + * @param {Number} langId id of the translation expression * @param {String} [plugin] name of the plugin * @return {String} translation string */ @@ -579,7 +579,7 @@ * build the cpu information as table rows * @param {jQuery} xml phpSysInfo-XML * @param {Array} tree array that holds the positions for treetable plugin - * @param {Integer} rootposition position of the parent element + * @param {Number} rootposition position of the parent element * @param {Array} collapsed array that holds all collapsed elements hwne opening page */ function fillCpu(xml, tree, rootposition, collapsed) { @@ -633,7 +633,7 @@ * @param {jQuery} xml phpSysInfo-XML * @param {String} type type of the hardware device * @param {Array} tree array that holds the positions for treetable plugin - * @param {Integer} rootposition position of the parent element + * @param {Number} rootposition position of the parent element */ function fillHWDevice(xml, type, tree, rootposition) { var devicecount = 0, html = ""; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |
From: <big...@us...> - 2009-09-07 09:56:52
|
Revision: 327 http://phpsysinfo.svn.sourceforge.net/phpsysinfo/?rev=327&view=rev Author: bigmichi1 Date: 2009-09-07 09:56:45 +0000 (Mon, 07 Sep 2009) Log Message: ----------- use strict Modified Paths: -------------- js/phpSysInfo/phpsysinfo.js Modified: js/phpSysInfo/phpsysinfo.js =================================================================== --- js/phpSysInfo/phpsysinfo.js 2009-09-07 09:18:04 UTC (rev 326) +++ js/phpSysInfo/phpsysinfo.js 2009-09-07 09:56:45 UTC (rev 327) @@ -23,6 +23,8 @@ /*global $, jQuery */ +"use strict"; + var langxml = [], langcounter = 1, filesystemTable, cookie_language = "", cookie_template = "", plugin_liste = [], langarr = []; /** * generate a cookie, if not exist, and add an entry to it<br><br> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |