Initial import
This commit is contained in:
commit
54fa30701e
278 changed files with 37868 additions and 0 deletions
6
public/javascript/autosubmit.js
Normal file
6
public/javascript/autosubmit.js
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
/* eslint-env browser */
|
||||
|
||||
'use strict';
|
||||
|
||||
document.getElementById('unsubscribe-button').click();
|
||||
document.getElementById('unsubscribe-form').submit();
|
||||
9
public/javascript/editor.js
Normal file
9
public/javascript/editor.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
/* eslint-env browser */
|
||||
/* globals $: false */
|
||||
|
||||
'use strict';
|
||||
|
||||
$('.summernote').summernote({
|
||||
height: 400,
|
||||
tabsize: 2
|
||||
});
|
||||
4
public/javascript/jquery-2.2.1.min.js
vendored
Normal file
4
public/javascript/jquery-2.2.1.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
public/javascript/jquery-2.2.1.min.map
Normal file
1
public/javascript/jquery-2.2.1.min.map
Normal file
File diff suppressed because one or more lines are too long
104
public/javascript/tables.js
Normal file
104
public/javascript/tables.js
Normal file
|
|
@ -0,0 +1,104 @@
|
|||
/* eslint-env browser */
|
||||
/* eslint prefer-arrow-callback: 0, object-shorthand: 0, new-cap: 0, no-invalid-this: 0, no-var: 0*/
|
||||
/* globals $: false, moment: false */
|
||||
|
||||
'use strict';
|
||||
|
||||
$('.data-table').each(function () {
|
||||
var rowSort = $(this).data('rowSort') || false;
|
||||
var columns = false;
|
||||
|
||||
if (rowSort) {
|
||||
columns = rowSort.split(',').map(function (sort) {
|
||||
return {
|
||||
orderable: sort === '1'
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
$(this).DataTable({
|
||||
scrollX: true,
|
||||
order: [
|
||||
[1, 'asc']
|
||||
],
|
||||
columns: columns,
|
||||
pageLength: 50
|
||||
});
|
||||
});
|
||||
|
||||
$('.data-table-ajax').each(function () {
|
||||
var rowSort = $(this).data('rowSort') || false;
|
||||
var columns = false;
|
||||
var listArgs = $(this).data('listArgs') || false;
|
||||
var ajaxUrl = '/lists/ajax/' + $(this).data('listId') + (listArgs ? '?' + listArgs : '');
|
||||
|
||||
if (rowSort) {
|
||||
columns = rowSort.split(',').map(function (sort) {
|
||||
return {
|
||||
orderable: sort === '1'
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
$(this).DataTable({
|
||||
scrollX: true,
|
||||
serverSide: true,
|
||||
ajax: {
|
||||
url: ajaxUrl,
|
||||
type: 'POST'
|
||||
},
|
||||
order: [
|
||||
[1, 'asc']
|
||||
],
|
||||
columns: columns,
|
||||
pageLength: 50,
|
||||
processing: true
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
$('.datestring').each(function () {
|
||||
$(this).html(moment($(this).data('date')).fromNow());
|
||||
});
|
||||
|
||||
$('.delete-form,.confirm-submit').on('submit', function (e) {
|
||||
if (!confirm($(this).data('confirmMessage') || 'Are you sure? This action can not be undone')) {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
|
||||
$('.fm-date-us.date').datepicker({
|
||||
format: 'mm/dd/yyyy',
|
||||
weekStart: 0,
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$('.fm-date-eur.date').datepicker({
|
||||
format: 'dd/mm/yyyy',
|
||||
weekStart: 1,
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$('.fm-date-generic.date').datepicker({
|
||||
format: 'yyyy-mm-dd',
|
||||
weekStart: 1,
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$('.fm-birthday-us.date').datepicker({
|
||||
format: 'mm/dd',
|
||||
weekStart: 0,
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$('.fm-birthday-eur.date').datepicker({
|
||||
format: 'dd/mm',
|
||||
weekStart: 1,
|
||||
autoclose: true
|
||||
});
|
||||
|
||||
$('.fm-birthday-generic.date').datepicker({
|
||||
format: 'mm-dd',
|
||||
weekStart: 1,
|
||||
autoclose: true
|
||||
});
|
||||
Loading…
Add table
Add a link
Reference in a new issue