brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sjcorb...@apache.org
Subject [1/7] git commit: jsgui: Clear datatable so no duplicates when clicking between policies
Date Tue, 26 Aug 2014 10:27:07 GMT
Repository: incubator-brooklyn
Updated Branches:
  refs/heads/master 0be9f25a5 -> e4f6ce314


jsgui: Clear datatable so no duplicates when clicking between policies


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

Branch: refs/heads/master
Commit: 33bb7a05da3734d905665a494f9ef26c2672051b
Parents: 124fff8
Author: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Authored: Fri Aug 15 12:07:12 2014 +0100
Committer: Sam Corbett <sam.corbett@cloudsoftcorp.com>
Committed: Tue Aug 19 16:56:25 2014 +0100

----------------------------------------------------------------------
 usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-brooklyn/blob/33bb7a05/usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js
----------------------------------------------------------------------
diff --git a/usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js b/usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js
index 08111cc..bbf2fff 100644
--- a/usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js
+++ b/usage/jsgui/src/main/webapp/assets/js/view/entity-policies.js
@@ -133,7 +133,8 @@ define([
             if (activePolicyId != null && that.activePolicy != activePolicyId) {
                 // TODO better to use a json array, as we do elsewhere
                 var $table = $('#policy-config-table'),
-                    $tbody = $('#policy-config-table tbody').empty();
+                    $tbody = $table.find('tbody');
+                $table.dataTable().fnClearTable();
                 $("#policy-config-none-selected").slideUp(100);
                 if (that._config.length==0) {
                     $(".has-no-policy-config").show();


Mime
View raw message