Updated Branches: refs/heads/4.0 e2585ff8e -> f9279f971
CloudStack-222: Widget changes to remove the UI prompt to restart the management server while trying to change global settings 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/f9279f97 Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/f9279f97 Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/f9279f97 Branch: refs/heads/4.0 Commit: f9279f97124223d635703a5438f7595fab7f64e4 Parents: e2585ff Author: Pranav Saxena <[email protected]> Authored: Tue Oct 2 00:17:52 2012 +0530 Committer: Pranav Saxena <[email protected]> Committed: Tue Oct 2 00:17:52 2012 +0530 ---------------------------------------------------------------------- ui/scripts/ui/widgets/listView.js | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/f9279f97/ui/scripts/ui/widgets/listView.js ---------------------------------------------------------------------- diff --git a/ui/scripts/ui/widgets/listView.js b/ui/scripts/ui/widgets/listView.js index c334f2e..36e9940 100644 --- a/ui/scripts/ui/widgets/listView.js +++ b/ui/scripts/ui/widgets/listView.js @@ -468,7 +468,12 @@ }; if (args.cancel) { //click Cancel button - showLabel(); + // showLabel(); + var oldVal = $label.html(); + $edit.hide(); + $label.fadeIn(); + $instanceRow.closest('div.data-table').dataTable('refresh'); + $editInput.val(_s(oldVal)); return false; }
