Skip to content
Browse files

Change event topic which renders paging controls

  • Loading branch information...
1 parent a4d1ca6 commit b2723cf7aea6939e3c3b977242dca675866fee28 @avanderhoorn avanderhoorn committed Oct 7, 2012
View
4 source/Glimpse.JavaScript/Modules/glimpse.js
@@ -1564,7 +1564,7 @@ glimpse.paging = (function($, pubsub, util, data, elements) {
pageIndexLast = Math.floor((pagingInfo.totalNumberOfRecords - 1) / pagingInfo.pageSize),
pagerContainer = $('<div class="glimpse-pager"></div>').appendTo(panelItem);
- pubsub.publish('trigger.tab.paging.controls', { key: key, pagerContainer: pagerContainer, pagerKey: pagingInfo.pagerKey, pagerType: pagingInfo.pagerType, pageIndex: pageIndex, pageIndexLast: pageIndexLast });
+ pubsub.publish('trigger.paging.controls.render', { key: key, pagerContainer: pagerContainer, pagerKey: pagingInfo.pagerKey, pagerType: pagingInfo.pagerType, pageIndex: pageIndex, pageIndexLast: pageIndexLast });
}
};
@@ -1587,7 +1587,7 @@ glimpse.paging.engine = (function(pubsub) {
pagerEngine.renderControls(args.key, args.pagerContainer, args.pagerKey, args.pagerType, args.pageIndex, args.pageIndexLast);
};
- pubsub.subscribe('trigger.tab.paging.controls', render);
+ pubsub.subscribe('trigger.paging.controls.render', render);
return {
retrieve: retrieve,
View
2 source/Glimpse.JavaScript/Modules/glimpse.paging.engine.js
@@ -11,7 +11,7 @@
pagerEngine.renderControls(args.key, args.pagerContainer, args.pagerKey, args.pagerType, args.pageIndex, args.pageIndexLast);
};
- pubsub.subscribe('trigger.tab.paging.controls', render);
+ pubsub.subscribe('trigger.paging.controls.render', render);
return {
retrieve: retrieve,
View
2 source/Glimpse.JavaScript/Modules/glimpse.paging.js
@@ -11,7 +11,7 @@ glimpse.paging = (function($, pubsub, util, data, elements) {
pageIndexLast = Math.floor((pagingInfo.totalNumberOfRecords - 1) / pagingInfo.pageSize),
pagerContainer = $('<div class="glimpse-pager"></div>').appendTo(panelItem);
- pubsub.publish('trigger.tab.paging.controls', { key: key, pagerContainer: pagerContainer, pagerKey: pagingInfo.pagerKey, pagerType: pagingInfo.pagerType, pageIndex: pageIndex, pageIndexLast: pageIndexLast });
+ pubsub.publish('trigger.paging.controls.render', { key: key, pagerContainer: pagerContainer, pagerKey: pagingInfo.pagerKey, pagerType: pagingInfo.pagerType, pageIndex: pageIndex, pageIndexLast: pageIndexLast });
}
};

0 comments on commit b2723cf

Please sign in to comment.
Something went wrong with that request. Please try again.