ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject ignite git commit: IGNITE-1707 Hide copy to clipboard button if browser not support this.
Date Mon, 19 Oct 2015 02:49:29 GMT
Repository: ignite
Updated Branches:
  refs/heads/ignite-843-rc1 c7cf31cd3 -> dbfc76fad


IGNITE-1707 Hide copy to clipboard button if browser not support this.


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

Branch: refs/heads/ignite-843-rc1
Commit: dbfc76fad6a9c55c837c4c0cf0c3da24858c97fc
Parents: c7cf31c
Author: Andrey <anovikov@gridgain.com>
Authored: Mon Oct 19 09:49:38 2015 +0700
Committer: Andrey <anovikov@gridgain.com>
Committed: Mon Oct 19 09:49:38 2015 +0700

----------------------------------------------------------------------
 .../control-center-web/src/main/js/controllers/common-module.js   | 3 +++
 .../src/main/js/views/configuration/metadata.jade                 | 1 +
 .../control-center-web/src/main/js/views/settings/profile.jade    | 1 +
 modules/control-center-web/src/main/js/views/sql/sql.jade         | 2 ++
 4 files changed, 7 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/dbfc76fa/modules/control-center-web/src/main/js/controllers/common-module.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/controllers/common-module.js b/modules/control-center-web/src/main/js/controllers/common-module.js
index 84cafad..908415f 100644
--- a/modules/control-center-web/src/main/js/controllers/common-module.js
+++ b/modules/control-center-web/src/main/js/controllers/common-module.js
@@ -1517,6 +1517,9 @@ consoleModule.service('ngCopy', ['$window', '$common', function ($window,
$commo
             element.bind('click', function () {
                 ngCopy(attrs.ngClickCopy);
             });
+
+            if (!document.queryCommandSupported('copy'))
+                element.hide();
         }
     }
 }]);

http://git-wip-us.apache.org/repos/asf/ignite/blob/dbfc76fa/modules/control-center-web/src/main/js/views/configuration/metadata.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/metadata.jade b/modules/control-center-web/src/main/js/views/configuration/metadata.jade
index 93da3d5..c268bb9 100644
--- a/modules/control-center-web/src/main/js/views/configuration/metadata.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/metadata.jade
@@ -18,6 +18,7 @@ extends sidebar
 
 append scripts
     script(src='/metadata-controller.js')
+    script(src='//cdn.rawgit.com/zenorocha/document.queryCommandSupported/v1.0.0/dist/queryCommandSupported.min.js')
 
 include ../includes/controls
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/dbfc76fa/modules/control-center-web/src/main/js/views/settings/profile.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/settings/profile.jade b/modules/control-center-web/src/main/js/views/settings/profile.jade
index d45f52f..2c6fd6d 100644
--- a/modules/control-center-web/src/main/js/views/settings/profile.jade
+++ b/modules/control-center-web/src/main/js/views/settings/profile.jade
@@ -21,6 +21,7 @@ mixin lbl(txt)
 
 append scripts
     script(src='/profile-controller.js')
+    script(src='//cdn.rawgit.com/zenorocha/document.queryCommandSupported/v1.0.0/dist/queryCommandSupported.min.js')
 
 block container
     .row(ng-controller='profileController')

http://git-wip-us.apache.org/repos/asf/ignite/blob/dbfc76fa/modules/control-center-web/src/main/js/views/sql/sql.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/sql/sql.jade b/modules/control-center-web/src/main/js/views/sql/sql.jade
index 5d55224..cb60638 100644
--- a/modules/control-center-web/src/main/js/views/sql/sql.jade
+++ b/modules/control-center-web/src/main/js/views/sql/sql.jade
@@ -17,6 +17,8 @@ extends ../templates/layout
 append css
     link(rel='stylesheet', href='//cdnjs.cloudflare.com/ajax/libs/nvd3/1.8.1/nv.d3.css')
 append scripts
+    script(src='//cdn.rawgit.com/zenorocha/document.queryCommandSupported/v1.0.0/dist/queryCommandSupported.min.js')
+
     script(src='//cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/mode-sql.js')
     script(src='//cdnjs.cloudflare.com/ajax/libs/ace/1.2.0/ext-language_tools.js')
 


Mime
View raw message