Skip to content

Commit

Permalink
package.json and apply braze modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielGarrettBraze committed Jan 8, 2021
1 parent bf4705a commit 2f3bfea
Show file tree
Hide file tree
Showing 33 changed files with 2,568 additions and 1,895 deletions.
31 changes: 0 additions & 31 deletions controls/slick.columnpicker.css

This file was deleted.

152 changes: 0 additions & 152 deletions controls/slick.columnpicker.js

This file was deleted.

41 changes: 0 additions & 41 deletions controls/slick.pager.css

This file was deleted.

17 changes: 8 additions & 9 deletions controls/slick.pager.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
//
// Modified from original Slickgrid source by Ian (see "Appboy Modification" comment below)
//

(function ($) {
function SlickGridPager(dataView, grid, $container) {
var $status;
Expand Down Expand Up @@ -111,7 +115,9 @@
$(this).toggleClass("ui-state-hover");
});

$container.children().wrapAll("<div class='slick-pager' />");
// Appboy Modification: Ian added ui-state-default here to make the footer get jquery ui theme
$container.children().wrapAll("<div class='slick-pager-row ui-state-default'>");
$container.children().wrapAll("<div class='slick-pager ui-widget-header'>");
}


Expand All @@ -133,13 +139,6 @@
}

if (pagingInfo.pageSize == 0) {
var totalRowsCount = dataView.getItems().length;
var visibleRowsCount = pagingInfo.totalRows;
if (visibleRowsCount < totalRowsCount) {
$status.text("Showing " + visibleRowsCount + " of " + totalRowsCount + " rows");
} else {
$status.text("Showing all " + totalRowsCount + " rows");
}
$status.text("Showing all " + pagingInfo.totalRows + " rows");
} else {
$status.text("Showing page " + (pagingInfo.pageNum + 1) + " of " + pagingInfo.totalPages);
Expand All @@ -151,4 +150,4 @@

// Slick.Controls.Pager
$.extend(true, window, { Slick:{ Controls:{ Pager:SlickGridPager }}});
})(jQuery);
})(jQuery);
Loading

0 comments on commit 2f3bfea

Please sign in to comment.