You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by db...@apache.org on 2015/09/02 04:17:35 UTC

[3/4] docs commit: Enabled the tooltips for the copy icons in plugin results

Enabled the tooltips for the copy icons in plugin results


Project: http://git-wip-us.apache.org/repos/asf/cordova-docs/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-docs/commit/f6d687bf
Tree: http://git-wip-us.apache.org/repos/asf/cordova-docs/tree/f6d687bf
Diff: http://git-wip-us.apache.org/repos/asf/cordova-docs/diff/f6d687bf

Branch: refs/heads/cordova-website
Commit: f6d687bf207451b8f102746897c8a645aed4b9dd
Parents: 07ef13a
Author: riknoll <ri...@microsoft.com>
Authored: Mon Aug 31 15:59:19 2015 -0700
Committer: Dmitry Blotsky <dm...@gmail.com>
Committed: Tue Sep 1 19:17:07 2015 -0700

----------------------------------------------------------------------
 www/static/plugins/plugin.jsx | 13 +++++++++++--
 1 file changed, 11 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-docs/blob/f6d687bf/www/static/plugins/plugin.jsx
----------------------------------------------------------------------
diff --git a/www/static/plugins/plugin.jsx b/www/static/plugins/plugin.jsx
index 12752db..21d6126 100755
--- a/www/static/plugins/plugin.jsx
+++ b/www/static/plugins/plugin.jsx
@@ -59,8 +59,14 @@ var Plugin = React.createClass({
 
         if(this.props.plugin) {
             copyIcon = (
-                <div data-toggle="tooltip" data-placement="left" title="Copy cordova plugin add command to clipboard">
-                    <img id={"copy-" + this.props.plugin.name} src="{{ site.baseurl}}/static/img/copy-clipboard-icon.svg" className="plugins-copy-to-clipboard"/>
+                <div>
+                    <img
+                        id={"copy-" + this.props.plugin.name}
+                        className="plugins-copy-to-clipboard"
+                        src="{{ site.baseurl}}/static/img/copy-clipboard-icon.svg"
+                        title="Copy cordova plugin add command to clipboard"
+                        data-toggle="tooltip"
+                        data-placement="left" />
                 </div>
             );
         }
@@ -96,6 +102,9 @@ var Plugin = React.createClass({
     },
     componentDidMount: function() {
         this.setClipboardText();
+        if(this.props.plugin) {
+            $(this.getDOMNode()).find(".plugins-copy-to-clipboard").tooltip();
+        }
     },
     componentDidUpdate: function() {
         this.setClipboardText();


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org