You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2016/06/21 21:15:44 UTC

svn commit: r1749605 - /qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js

Author: orudyy
Date: Tue Jun 21 21:15:44 2016
New Revision: 1749605

URL: http://svn.apache.org/viewvc?rev=1749605&view=rev
Log:
QPID-7288: Fix change event indexes

Modified:
    qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js

Modified: qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js
URL: http://svn.apache.org/viewvc/qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js?rev=1749605&r1=1749604&r2=1749605&view=diff
==============================================================================
--- qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js (original)
+++ qpid/java/trunk/broker-plugins/management-http/src/main/java/resources/js/qpid/management/query/QueryGrid.js Tue Jun 21 21:15:44 2016
@@ -59,7 +59,6 @@ define(["dojo/_base/declare",
                                               */
                                               track:      function()
                                                           {
-                                                              this.track = null;
                                                               return this;
                                                           },
                                               /*
@@ -321,7 +320,9 @@ define(["dojo/_base/declare",
 
                                 if (newResult == null)
                                 {
-                                    var event = {"target": currentResult, "previousIndex": i, "index": i};
+                                    var event = {"target": currentResult,
+                                                 "previousIndex": evt.start + i,
+                                                 "index": evt.start +i};
                                     store.emit("delete", event);
                                     currentResults.splice(i, 1);
                                 }
@@ -345,13 +346,15 @@ define(["dojo/_base/declare",
 
                                 if (currentResult == null)
                                 {
-                                    var event = {"target": newResult, "index": j};
+                                    var event = {"target": newResult, "index": j + evt.start};
                                     store.emit("add", event);
                                     currentResults.splice(j, 0, currentResults);
                                 }
                                 else
                                 {
-                                    var event = {"target": newResult, "previousIndex": previousIndex, "index": j};
+                                    var event = {"target": newResult,
+                                                 "previousIndex": previousIndex + evt.start,
+                                                 "index": j + evt.start};
                                     if (previousIndex === j)
                                     {
                                         currentResults[j] = newResult;



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