Skip to content

Commit

Permalink
Merge pull request #13 from tafcoder/fix-gulp
Browse files Browse the repository at this point in the history
Fix JS codes and update gulp
  • Loading branch information
iamabdus committed Sep 10, 2018
2 parents 30416b5 + ba41e5a commit 23e3589
Show file tree
Hide file tree
Showing 60 changed files with 314 additions and 5,979 deletions.
2 changes: 1 addition & 1 deletion dist/css/sleek.css.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/custom.js
Original file line number Diff line number Diff line change
Expand Up @@ -465,14 +465,14 @@ $(document).ready(function() {
var dataTable1 = document.getElementById("d-table1");
if (dataTable1 !== null) {
$(dataTable1).DataTable({
ajax: "assets/js/datatable.json",
ajax: "assets/data/datatable.json",
dom: 'T<"clear">lfrtip'
});
}
var dataTable2 = document.getElementById("d-table2");
if (dataTable2 !== null) {
$(dataTable2).DataTable({
ajax: "assets/js/datatable.json",
ajax: "assets/data/datatable.json",
dom: 'T<"clear">lfrtip',
buttons: ["copy", "csv", "excel", "pdf", "print"]
});
Expand Down
2 changes: 1 addition & 1 deletion dist/js/custom.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 6 additions & 6 deletions dist/js/date-range.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ $(function() {
var end = moment();
var cb = function(start, end) {
$("#sales-graph .date-range-report span").html(
start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")
start.format("ll") + " - " + end.format("ll")
);
};

Expand Down Expand Up @@ -55,7 +55,7 @@ $(function() {
var end = moment();
var cb = function(start, end) {
$("#recent-orders .date-range-report span").html(
start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")
start.format("ll") + " - " + end.format("ll")
);
};

Expand Down Expand Up @@ -94,7 +94,7 @@ $(function() {
var end = moment().subtract(1, "days");
var cb = function(start, end) {
$("#user-activity .date-range-report span").html(
start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")
start.format("ll") + " - " + end.format("ll")
);
};

Expand Down Expand Up @@ -133,7 +133,7 @@ $(function() {
var end = moment();
var cb = function(start, end) {
$("#analytics-country .date-range-report span").html(
start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")
start.format("ll") + " - " + end.format("ll")
);
};

Expand Down Expand Up @@ -172,7 +172,7 @@ $(function() {
var end = moment();
var cb = function(start, end) {
$("#page-views .date-range-report span").html(
start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")
start.format("ll") + " - " + end.format("ll")
);
};

Expand Down Expand Up @@ -210,7 +210,7 @@ $(function() {
var end = moment();
var cb = function(start, end) {
$("#activity-user .date-range-report span").html(
start.format("MMMM D, YYYY") + " - " + end.format("MMMM D, YYYY")
start.format("ll") + " - " + end.format("ll")
);
};

Expand Down
Loading

0 comments on commit 23e3589

Please sign in to comment.