Skip to content

Commit e2fcd13

Browse files
committed
Updated layout pages.
1 parent 0a9fb60 commit e2fcd13

21 files changed

+4888
-11644
lines changed

dist/css/theme.css

100755100644
Lines changed: 1905 additions & 5636 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/theme.css.map

100755100644
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/theme.min.css

100755100644
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/css/theme.min.css.map

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/js/theme.js

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,5 +198,26 @@
198198
else
199199
$(this).find('.material-icons').html('expand_more');
200200
});
201+
202+
var gridButton = $('a.view-grid'),
203+
thumbButton = $('a.view-thumb'),
204+
listButton = $('a.view-list'),
205+
items = $('ul.view-as'),
206+
displayButtons = $('.dispaly-option-buttons a');
207+
208+
gridButton.click(function() {
209+
$('#layout-wrap .list-item').attr('class', 'col-xl-3 col-lg-4 col-12 col-sm-6 mb-4 list-item list-item-grid');
210+
});
211+
listButton.click(function() {
212+
$('#layout-wrap .list-item').attr('class', 'col-12 list-item');
213+
});
214+
thumbButton.click(function() {
215+
$('#layout-wrap .list-item').attr('class', 'col-12 list-item list-item-thumb');
216+
});
217+
218+
$(displayButtons).on('click', function(){
219+
$(displayButtons).removeClass('active');
220+
$(this).addClass('active');
221+
});
201222
})
202223
}(window, document, jQuery);

dist/js/theme.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/layouts.js

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
(function($) {
2+
'use strict';
3+
$(function() {
4+
$('.file-upload-browse').on('click', function() {
5+
var file = $(this).parent().parent().parent().find('.file-upload-default');
6+
file.trigger('click');
7+
});
8+
$('.file-upload-default').on('change', function() {
9+
$(this).parent().find('.form-control').val($(this).val().replace(/C:\\fakepath\\/i, ''));
10+
});
11+
});
12+
$(document).ready(function() {
13+
var listDelete = $('.list-delete');
14+
listDelete.on('click', function() {
15+
swal({
16+
title: "Are you sure?",
17+
text: "Do you really want to delete this item?",
18+
icon: "warning",
19+
buttons: ["Cancel", "Delete Now"],
20+
dangerMode: true,
21+
})
22+
.then((willDelete) => {
23+
if (willDelete) {
24+
swal({
25+
title: "Deleted",
26+
text: "The list item has been deleted!",
27+
icon: "success",
28+
});
29+
} else {
30+
swal("The item is not deleted!");
31+
}
32+
});
33+
});
34+
$('.html-editor').summernote({
35+
height: 300,
36+
tabsize: 2
37+
});
38+
})
39+
})(jQuery);

package-lock.json

Lines changed: 20 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@
5353
"screenfull": "^3.3.*",
5454
"select2": "^4.0.6-rc.1",
5555
"summernote": "^0.8.10",
56+
"sweetalert": "^2.1.2",
5657
"tempusdominus-bootstrap-4": "^5.1.2",
5758
"weather-icons": "^1.3.2"
5859
},

0 commit comments

Comments
 (0)