You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@brooklyn.apache.org by al...@apache.org on 2015/07/29 01:10:57 UTC

[1/2] incubator-brooklyn git commit: Uses text() rather than html() when copying to clipboard

Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master f2ba610ae -> 946b5dcf7


Uses text() rather than html() when copying to clipboard


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

Branch: refs/heads/master
Commit: 7cf448206c7cfeb6bb7c97bde4418abb1b3e613b
Parents: d7ac3ac
Author: Martin Harris <gi...@nakomis.com>
Authored: Mon Jul 27 09:18:27 2015 +0100
Committer: Martin Harris <gi...@nakomis.com>
Committed: Mon Jul 27 09:18:27 2015 +0100

----------------------------------------------------------------------
 usage/jsgui/src/main/webapp/assets/js/view/entity-config.js  | 4 ++--
 usage/jsgui/src/main/webapp/assets/js/view/entity-sensors.js | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/7cf44820/usage/jsgui/src/main/webapp/assets/js/view/entity-config.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/webapp/assets/js/view/entity-config.js b/usage/jsgui/src/main/webapp/assets/js/view/entity-config.js
index befd9f2..f517bcb 100644
--- a/usage/jsgui/src/main/webapp/assets/js/view/entity-config.js
+++ b/usage/jsgui/src/main/webapp/assets/js/view/entity-config.js
@@ -180,11 +180,11 @@ define([
                     // the zeroClipboard instance is a singleton so check our scope first
                     if (!$(this).closest("#config-table").length) return;
                     var text = $(this).attr('copy-value');
-                    if (!text) text = $(this).closest('.floatGroup').find('.value').html();
+                    if (!text) text = $(this).closest('.floatGroup').find('.value').text();
                     
 //                    log("Copying config text '"+text+"' to clipboard");
                     client.setText(text);
-                    
+
                     // show the word "copied" for feedback;
                     // NB this occurs on mousedown, due to how flash plugin works
                     // (same style of feedback and interaction as github)

http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/7cf44820/usage/jsgui/src/main/webapp/assets/js/view/entity-sensors.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/webapp/assets/js/view/entity-sensors.js b/usage/jsgui/src/main/webapp/assets/js/view/entity-sensors.js
index 7fbf90e..282c622 100644
--- a/usage/jsgui/src/main/webapp/assets/js/view/entity-sensors.js
+++ b/usage/jsgui/src/main/webapp/assets/js/view/entity-sensors.js
@@ -188,8 +188,8 @@ define([
                     // the zeroClipboard instance is a singleton so check our scope first
                     if (!$(this).closest("#sensors-table").length) return;
                     var text = $(this).attr('copy-value');
-                    if (!text) text = $(this).closest('.floatGroup').find('.value').html();
-                    
+                    if (!text) text = $(this).closest('.floatGroup').find('.value').text();
+
 //                    log("Copying sensors text '"+text+"' to clipboard");
                     client.setText(text);
                     


[2/2] incubator-brooklyn git commit: This closes #754

Posted by al...@apache.org.
This closes #754


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

Branch: refs/heads/master
Commit: 946b5dcf7525cdfb215bb3b893805016e42b4c7e
Parents: f2ba610 7cf4482
Author: Aled Sage <al...@gmail.com>
Authored: Wed Jul 29 00:11:08 2015 +0100
Committer: Aled Sage <al...@gmail.com>
Committed: Wed Jul 29 00:11:08 2015 +0100

----------------------------------------------------------------------
 usage/jsgui/src/main/webapp/assets/js/view/entity-config.js  | 4 ++--
 usage/jsgui/src/main/webapp/assets/js/view/entity-sensors.js | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------