You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by pr...@apache.org on 2012/10/01 20:44:00 UTC
[2/2] git commit: CloudStack-222:Admin UI prompts to restart
Management server with cancel edit operation - Widget changes to reset the
default value Reviewed-By:Brian
CloudStack-222:Admin UI prompts to restart Management server with cancel edit operation - Widget changes to reset the default value Reviewed-By:Brian
Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/4d458c98
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/4d458c98
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/4d458c98
Branch: refs/heads/master
Commit: 4d458c988aa174adc81ed143be7631b2fffa4044
Parents: ca49814
Author: Pranav Saxena <pr...@citrix.com>
Authored: Tue Oct 2 00:12:51 2012 +0530
Committer: Pranav Saxena <pr...@citrix.com>
Committed: Tue Oct 2 00:12:51 2012 +0530
----------------------------------------------------------------------
ui/scripts/ui/widgets/listView.js | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/4d458c98/ui/scripts/ui/widgets/listView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js
index 5cc069d..425efce 100644
--- a/ui/scripts/ui/widgets/listView.js
+++ b/ui/scripts/ui/widgets/listView.js
@@ -469,9 +469,11 @@
if (args.cancel) { //click Cancel button
// showLabel();
+ var oldVal = $label.html();
$edit.hide();
$label.fadeIn();
$instanceRow.closest('div.data-table').dataTable('refresh');
+ $editInput.val(_s(oldVal));
return false;
}