You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stratos.apache.org by la...@apache.org on 2015/03/12 02:27:07 UTC

[6/9] stratos git commit: add long names to tooltips

add long names to tooltips


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

Branch: refs/heads/master
Commit: 30552773276b09975ee40fb01e92438d36ca2045
Parents: e2c9ded
Author: Dakshika Jayathilaka <si...@gmail.com>
Authored: Thu Mar 12 05:09:57 2015 +0530
Committer: Dakshika Jayathilaka <si...@gmail.com>
Committed: Thu Mar 12 05:09:57 2015 +0530

----------------------------------------------------------------------
 .../console/themes/theme0/js/custom/applications-deploy.js     | 6 ++++++
 .../console/themes/theme0/js/custom/applications-view.js       | 6 ++++++
 2 files changed, 12 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/stratos/blob/30552773/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-deploy.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-deploy.js b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-deploy.js
index 19e5829..f5e1f4a 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-deploy.js
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-deploy.js
@@ -113,6 +113,8 @@ function addJsplumbGroup(groupJSON, cartridgeCounter){
         .text(groupJSON.alias)
         .addClass('input-false')
         .addClass('application')
+        .attr('data-toggle', 'tooltip')
+        .attr('title',groupJSON.alias )
         .addClass('stepnode')
         .appendTo('#whiteboard');
     $(divRoot).append('<div class="notification"><i class="fa fa-exclamation-circle fa-2x"></i></div>');
@@ -134,6 +136,8 @@ function addJsplumbGroup(groupJSON, cartridgeCounter){
             var divCartridge = $('<div>').attr({'id':cartridgeCounter+'-'+parentName+'-'+item[prop].type} )
                 .text(item[prop].type)
                 .addClass('input-false')
+                .attr('data-toggle', 'tooltip')
+                .attr('title',item[prop].type )
                 .addClass('stepnode')
                 .appendTo('#whiteboard');
 
@@ -162,6 +166,8 @@ function addJsplumbGroup(groupJSON, cartridgeCounter){
             var divGroup = $('<div>').attr({'id':cartridgeCounter+'-'+parentName+'-'+item[prop]['name'],'data-type':'group','data-ctype':item[prop]['name'] })
                 .text(item[prop]['name'])
                 .addClass('stepnode')
+                .attr('data-toggle', 'tooltip')
+                .attr('title',item[prop]['name'] )
                 .addClass('input-false')
                 .appendTo('#whiteboard');
 

http://git-wip-us.apache.org/repos/asf/stratos/blob/30552773/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-view.js
----------------------------------------------------------------------
diff --git a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-view.js b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-view.js
index 87eb679..a90a053 100644
--- a/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-view.js
+++ b/components/org.apache.stratos.manager.console/console/themes/theme0/js/custom/applications-view.js
@@ -113,6 +113,8 @@ function addJsplumbGroup(groupJSON, cartridgeCounter){
         .text(groupJSON.alias)
         .addClass('input-false')
         .addClass('stepnode')
+        .attr('data-toggle', 'tooltip')
+        .attr('title',groupJSON.alias )
         .appendTo('#whiteboard');
     $(divRoot).append('<div class="notification"><i class="fa fa-exclamation-circle fa-2x"></i></div>');
     jsPlumb.addEndpoint($(divRoot), {
@@ -134,6 +136,8 @@ function addJsplumbGroup(groupJSON, cartridgeCounter){
                 .text(item[prop].type)
                 .addClass('input-false')
                 .addClass('stepnode')
+                .attr('data-toggle', 'tooltip')
+                .attr('title',item[prop].type )
                 .appendTo('#whiteboard');
             $(divCartridge).append('<div class="notification"><i class="fa fa-exclamation-circle fa-2x"></i></div>');
             jsPlumb.addEndpoint($(divCartridge), {
@@ -159,6 +163,8 @@ function addJsplumbGroup(groupJSON, cartridgeCounter){
             var divGroup = $('<div>').attr({'id':cartridgeCounter+'-'+parentName+'-'+item[prop]['name'],'data-type':'group','data-ctype':item[prop]['name'] })
                 .text(item[prop]['name'])
                 .addClass('stepnode')
+                .attr('data-toggle', 'tooltip')
+                .attr('title',item[prop]['name'] )
                 .addClass('input-false')
                 .appendTo('#whiteboard');
             $(divGroup).append('<div class="notification"><i class="fa fa-exclamation-circle fa-2x"></i></div>');