From df8393586d80651827b645bc23744c41fd426fdb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Carlos=20Mart=C3=ADn?= Date: Thu, 14 May 2015 12:23:08 +0200 Subject: [PATCH] Feature #3748: Fix xml entity in string, add param docs --- src/sunstone/public/app/utils/humanize.js | 2 +- src/sunstone/public/app/utils/panel/template-table.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/sunstone/public/app/utils/humanize.js b/src/sunstone/public/app/utils/humanize.js index 182f145be2..cfea9d9447 100644 --- a/src/sunstone/public/app/utils/humanize.js +++ b/src/sunstone/public/app/utils/humanize.js @@ -68,7 +68,7 @@ define(function(require) { var month = _pad(d.getMonth() + 1, 2); //getMonths returns 0-11 var year = d.getFullYear(); - return hour + ":" + mins + ":" + secs + " " + day + "/" + month + "/" + year; + return hour + ":" + mins + ":" + secs + " " + day + "/" + month + "/" + year; } return { diff --git a/src/sunstone/public/app/utils/panel/template-table.js b/src/sunstone/public/app/utils/panel/template-table.js index 44e4a5ef30..7ce08ef331 100644 --- a/src/sunstone/public/app/utils/panel/template-table.js +++ b/src/sunstone/public/app/utils/panel/template-table.js @@ -37,9 +37,13 @@ define(function(require) { /* Initialize the table, clicking the edit icon will add an input to edit the value + @param {Object} templateJSON Resource template (i.e: ZONE.TEMPLATE, IMAGE.TEMPLATE...) @param {String} resourceType Resource type (i.e: Zone, Host, Image...) @param {String} resourceId ID of the resource @param {jQuery Object} context Selector including the tr + @param {Object} unshownValues Values from the origianl resource template that + have been deleted from the templateJSON param. Whithout this, a template + update would permanently delete the missing values from OpenNebula */ var _setup = function(templateJSON, resourceType, resourceId, context, unshownValues) { // Remove previous listeners