Author: ygrego Date: 2015-02-16 17:28:01 +0000 (Mon, 16 Feb 2015) New Revision: 813 Url: http://forge.nuiton.org/projects/sandbox/repository/revisions/813 Log: Should permit displaying of tests information. Added: oipf/js/utils/Displayer.js Added: oipf/js/utils/Displayer.js =================================================================== --- oipf/js/utils/Displayer.js (rev 0) +++ oipf/js/utils/Displayer.js 2015-02-16 17:28:01 UTC (rev 813) @@ -0,0 +1,22 @@ +/* + * To change this license header, choose License Headers in Project Properties. + * To change this template file, choose Tools | Templates + * and open the template in the editor. + */ +var Displayer = Class.extend({ + + init : function() { + }, + + appendChildFromTab : function(id, tab) { + + for(var keys=Object.keys(tab) in tab){ + var p = document.createElement("P"); + var t = document.createTextNode(keys+": "+tab[keys]); + p.appendChild(t); + document.getElementById(id).appendChild(p); + } + + } + +});
participants (1)
-
ygregoï¼ users.nuiton.org