You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ke...@apache.org on 2012/05/28 00:35:41 UTC

[6/50] [abbrv] git commit: CS-14844: Fix edit action

CS-14844: Fix edit action

Fix edit action by referring to the new td.value <span>, instead of
td.value


Project: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/commit/b3f5728a
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/tree/b3f5728a
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/diff/b3f5728a

Branch: refs/heads/3.0.x
Commit: b3f5728ac34de372795e61ab46d3bc9bb4882884
Parents: 5f4e45f
Author: Brian Federle <br...@citrix.com>
Authored: Fri May 25 12:23:47 2012 -0700
Committer: Brian Federle <br...@citrix.com>
Committed: Fri May 25 12:24:31 2012 -0700

----------------------------------------------------------------------
 ui/scripts/ui/widgets/detailView.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b3f5728a/ui/scripts/ui/widgets/detailView.js
----------------------------------------------------------------------
diff --git a/ui/scripts/ui/widgets/detailView.js b/ui/scripts/ui/widgets/detailView.js
index 3169e01..219a936 100644
--- a/ui/scripts/ui/widgets/detailView.js
+++ b/ui/scripts/ui/widgets/detailView.js
@@ -300,7 +300,7 @@
         // Save and turn back into labels
         $inputs.each(function() {
           var $input = $(this);
-          var $value = $input.closest('td.value');
+          var $value = $input.closest('td.value span');
 
           if ($input.is('input[type=text]'))
             $value.html(_s(
@@ -325,7 +325,7 @@
       var cancelEdits = function($inputs, $editButton) {
         $inputs.each(function() {
           var $input = $(this);
-          var $value = $input.closest('td.value');
+          var $value = $input.closest('td.value span');
           var originalValue = $input.data('original-value');
 
           $value.html(_s(originalValue));
@@ -411,7 +411,7 @@
         }
       });
 
-      $detailView.find('td.value').each(function() {
+      $detailView.find('td.value span').each(function() {
         var name = $(this).closest('tr').data('detail-view-field');
         var $value = $(this);
         if (!$value.data('detail-view-is-editable')) return true;