ignite-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From anovi...@apache.org
Subject [20/50] ignite git commit: IGNITE-843 Fixed "JQuery is not a function" + added missing affix fix on Domains screen.
Date Fri, 04 Mar 2016 09:31:15 GMT
IGNITE-843 Fixed "JQuery is not a function" + added missing affix fix on Domains screen.


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

Branch: refs/heads/ignite-843
Commit: 1b214b0ef904474e9e1a58af4e365eece2757b8d
Parents: daccaef
Author: Dmitriyff <dmitriyff@gmail.com>
Authored: Wed Feb 24 16:29:25 2016 +0700
Committer: Alexey Kuznetsov <akuznetsov@apache.org>
Committed: Wed Feb 24 16:29:25 2016 +0700

----------------------------------------------------------------------
 .../app/directives/bs-affix-update/bs-affix-update.directive.js  | 4 ++--
 .../src/main/js/views/configuration/domains.jade                 | 2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ignite/blob/1b214b0e/modules/control-center-web/src/main/js/app/directives/bs-affix-update/bs-affix-update.directive.js
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/app/directives/bs-affix-update/bs-affix-update.directive.js
b/modules/control-center-web/src/main/js/app/directives/bs-affix-update/bs-affix-update.directive.js
index 131089d..dbf78e5 100644
--- a/modules/control-center-web/src/main/js/app/directives/bs-affix-update/bs-affix-update.directive.js
+++ b/modules/control-center-web/src/main/js/app/directives/bs-affix-update/bs-affix-update.directive.js
@@ -15,7 +15,7 @@
  * limitations under the License.
  */
 
-import jQuery from 'jquery';
+import angular from 'angular';
 
 export default ['igniteBsAffixUpdate', ['$window', '$timeout', ($window, $timeout) =>
{
     let update = null;
@@ -23,7 +23,7 @@ export default ['igniteBsAffixUpdate', ['$window', '$timeout', ($window,
$timeou
     const link = ({$last}) => {
         if ($last) {
             update && $timeout.cancel(update);
-            update = $timeout(() => jQuery($window).trigger('resize'), 1000);
+            update = $timeout(() => angular.element($window).triggerHandler('resize'),
1000);
         }
     };
 

http://git-wip-us.apache.org/repos/asf/ignite/blob/1b214b0e/modules/control-center-web/src/main/js/views/configuration/domains.jade
----------------------------------------------------------------------
diff --git a/modules/control-center-web/src/main/js/views/configuration/domains.jade b/modules/control-center-web/src/main/js/views/configuration/domains.jade
index 395ead1..0dd39a0 100644
--- a/modules/control-center-web/src/main/js/views/configuration/domains.jade
+++ b/modules/control-center-web/src/main/js/views/configuration/domains.jade
@@ -44,7 +44,7 @@ include ../includes/infos
                                     .scrollable-y(ng-show='(displayedRows | domainsValidation:ui.showValid:true).length
> 0' style='max-height: 200px')
                                         table
                                             tbody
-                                                tr(ng-repeat='row in (displayedRows | domainsValidation:ui.showValid:true)
track by row._id')
+                                                tr(ng-repeat='row in (displayedRows | domainsValidation:ui.showValid:true)
track by row._id' ignite-bs-affix-update)
                                                     td
                                                         a(ng-class='{active: row._id == selectedItem._id}'
ng-click='selectItem(row)') {{$index + 1}}) {{row.valueType}}
                                     label.placeholder(ng-show='(displayedRows | domainsValidation:ui.showValid:true).length
== 0') No domain models found


Mime
View raw message