-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
72e2172
commit 91d933c
Showing
17 changed files
with
969 additions
and
0 deletions.
There are no files selected for viewing
224 changes: 224 additions & 0 deletions
224
public/cms/sleepingowl/default/css/dataTables.bootstrap.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,224 @@ | ||
.dataTables_wrapper { | ||
margin-top: 15px; | ||
} | ||
|
||
div.dataTables_length label { | ||
float: left; | ||
text-align: left; | ||
font-weight: normal; | ||
} | ||
|
||
div.dataTables_length select { | ||
width: 75px; | ||
} | ||
|
||
div.dataTables_filter label { | ||
float: right; | ||
font-weight: normal; | ||
} | ||
|
||
div.dataTables_filter input { | ||
width: 16em; | ||
} | ||
|
||
div.dataTables_info { | ||
padding-top: 8px; | ||
} | ||
|
||
div.dataTables_paginate { | ||
float: right; | ||
margin: 0; | ||
} | ||
|
||
div.dataTables_paginate ul.pagination { | ||
margin: 2px 0; | ||
white-space: nowrap; | ||
} | ||
|
||
table.dataTable, | ||
table.dataTable td, | ||
table.dataTable th { | ||
-webkit-box-sizing: content-box; | ||
-moz-box-sizing: content-box; | ||
box-sizing: content-box; | ||
} | ||
|
||
table.dataTable { | ||
clear: both; | ||
margin-top: 6px !important; | ||
margin-bottom: 6px !important; | ||
max-width: none !important; | ||
} | ||
|
||
table.dataTable thead .sorting, | ||
table.dataTable thead .sorting_asc, | ||
table.dataTable thead .sorting_desc, | ||
table.dataTable thead .sorting_asc_disabled, | ||
table.dataTable thead .sorting_desc_disabled { | ||
cursor: pointer; | ||
} | ||
|
||
table.dataTable th:active { | ||
outline: none; | ||
} | ||
|
||
/* Scrolling */ | ||
|
||
div.dataTables_scrollHead table { | ||
margin-bottom: 0 !important; | ||
border-bottom-left-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
|
||
div.dataTables_scrollHead table thead tr:last-child th:first-child, | ||
div.dataTables_scrollHead table thead tr:last-child td:first-child { | ||
border-bottom-left-radius: 0 !important; | ||
border-bottom-right-radius: 0 !important; | ||
} | ||
|
||
div.dataTables_scrollBody table { | ||
margin-top: 0 !important; | ||
margin-bottom: 0 !important; | ||
border-top: none; | ||
} | ||
|
||
div.dataTables_scrollBody tbody tr:first-child th, | ||
div.dataTables_scrollBody tbody tr:first-child td { | ||
border-top: none; | ||
} | ||
|
||
div.dataTables_scrollFoot table { | ||
margin-top: 0 !important; | ||
border-top: none; | ||
} | ||
|
||
/* | ||
* TableTools styles | ||
*/ | ||
|
||
.table tbody tr.active td, | ||
.table tbody tr.active th { | ||
color: white; | ||
background-color: #08C; | ||
} | ||
|
||
.table tbody tr.active:hover td, | ||
.table tbody tr.active:hover th { | ||
background-color: #0075b0 !important; | ||
} | ||
|
||
.table tbody tr.active a { | ||
color: white; | ||
} | ||
|
||
.table-striped tbody tr.active:nth-child(odd) td, | ||
.table-striped tbody tr.active:nth-child(odd) th { | ||
background-color: #017ebc; | ||
} | ||
|
||
table.DTTT_selectable tbody tr { | ||
cursor: pointer; | ||
} | ||
|
||
div.DTTT .btn { | ||
font-size: 12px; | ||
color: #333 !important; | ||
} | ||
|
||
div.DTTT .btn:hover { | ||
text-decoration: none !important; | ||
} | ||
|
||
ul.DTTT_dropdown.dropdown-menu { | ||
z-index: 2003; | ||
} | ||
|
||
ul.DTTT_dropdown.dropdown-menu a { | ||
color: #333 !important; /* needed only when demo_page.css is included */ | ||
} | ||
|
||
ul.DTTT_dropdown.dropdown-menu li { | ||
position: relative; | ||
} | ||
|
||
ul.DTTT_dropdown.dropdown-menu li:hover a { | ||
color: white !important; | ||
background-color: #0088cc; | ||
} | ||
|
||
div.DTTT_collection_background { | ||
z-index: 2002; | ||
} | ||
|
||
/* TableTools information display */ | ||
|
||
div.DTTT_print_info.modal { | ||
height: 150px; | ||
margin-top: -75px; | ||
text-align: center; | ||
} | ||
|
||
div.DTTT_print_info h6 { | ||
margin: 1em; | ||
font-size: 28px; | ||
font-weight: normal; | ||
line-height: 28px; | ||
} | ||
|
||
div.DTTT_print_info p { | ||
font-size: 14px; | ||
line-height: 20px; | ||
} | ||
|
||
/* | ||
* FixedColumns styles | ||
*/ | ||
|
||
div.DTFC_LeftHeadWrapper table, | ||
div.DTFC_LeftFootWrapper table, | ||
div.DTFC_RightHeadWrapper table, | ||
div.DTFC_RightFootWrapper table, | ||
table.DTFC_Cloned tr.even { | ||
background-color: white; | ||
} | ||
|
||
div.DTFC_RightHeadWrapper table, | ||
div.DTFC_LeftHeadWrapper table { | ||
margin-bottom: 0 !important; | ||
border-top-right-radius: 0 !important; | ||
border-bottom-left-radius: 0 !important; | ||
border-bottom-right-radius: 0 !important; | ||
} | ||
|
||
div.DTFC_RightHeadWrapper table thead tr:last-child th:first-child, | ||
div.DTFC_RightHeadWrapper table thead tr:last-child td:first-child, | ||
div.DTFC_LeftHeadWrapper table thead tr:last-child th:first-child, | ||
div.DTFC_LeftHeadWrapper table thead tr:last-child td:first-child { | ||
border-bottom-left-radius: 0 !important; | ||
border-bottom-right-radius: 0 !important; | ||
} | ||
|
||
div.DTFC_RightBodyWrapper table, | ||
div.DTFC_LeftBodyWrapper table { | ||
margin-bottom: 0 !important; | ||
border-top: none; | ||
} | ||
|
||
div.DTFC_RightBodyWrapper tbody tr:first-child th, | ||
div.DTFC_RightBodyWrapper tbody tr:first-child td, | ||
div.DTFC_LeftBodyWrapper tbody tr:first-child th, | ||
div.DTFC_LeftBodyWrapper tbody tr:first-child td { | ||
border-top: none; | ||
} | ||
|
||
div.DTFC_RightFootWrapper table, | ||
div.DTFC_LeftFootWrapper table { | ||
border-top: none; | ||
} | ||
|
||
.dataTables_processing { | ||
position: absolute; | ||
left: 50%; | ||
top: 140px; | ||
margin-left: -35px; | ||
} |
7 changes: 7 additions & 0 deletions
7
public/cms/sleepingowl/default/css/formitems/datetime/style.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.input-group-addon .fa-calendar, .input-group-addon .fa-clock-o { | ||
cursor: pointer; | ||
} | ||
|
||
.form-group.datepicker, .form-group.timepicker { | ||
width: 250px; | ||
} |
3 changes: 3 additions & 0 deletions
3
public/cms/sleepingowl/default/css/formitems/image/images.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
.images-group .imageThumbnail { | ||
cursor: move; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
window.columnFilters = {}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
window.columnFilters.range = function (container, table) | ||
{ | ||
var $container = $(container); | ||
var $input = $container.find('input'); | ||
var from = $input.filter(':first'); | ||
var to = $input.filter(':last'); | ||
var index = $container.closest('td').data('index'); | ||
|
||
from.data('ajax-data-name', 'from'); | ||
to.data('ajax-data-name', 'to'); | ||
|
||
$.fn.dataTable.ext.search.push(function (settings, data, dataIndex) | ||
{ | ||
if (table.settings()[0].sTableId != settings.sTableId) | ||
{ | ||
return true; | ||
} | ||
var value = table.data()[dataIndex][index]; | ||
if (value['@data-order'] !== undefined) | ||
{ | ||
value = value['@data-order']; | ||
} | ||
|
||
var fromValue = from.val(); | ||
var toValue = to.val(); | ||
if ((from.closest('.datepicker').length > 0) && (to.closest('.datepicker').length > 0)) | ||
{ | ||
if (fromValue != '') | ||
{ | ||
fromValue = from.closest('.datepicker').data('DateTimePicker').getDate(); | ||
} else | ||
{ | ||
fromValue = Number.NEGATIVE_INFINITY; | ||
} | ||
if (toValue != '') | ||
{ | ||
toValue = to.closest('.datepicker').data('DateTimePicker').getDate(); | ||
} else | ||
{ | ||
toValue = Number.POSITIVE_INFINITY; | ||
} | ||
|
||
value = moment(value); | ||
} else | ||
{ | ||
value = parseInt(value); | ||
if (fromValue != '') | ||
{ | ||
fromValue = parseInt(fromValue); | ||
} else | ||
{ | ||
fromValue = Number.NEGATIVE_INFINITY; | ||
} | ||
if (toValue != '') | ||
{ | ||
toValue = parseInt(toValue); | ||
} else | ||
{ | ||
toValue = Number.POSITIVE_INFINITY; | ||
} | ||
} | ||
|
||
return (value >= fromValue && value <= toValue); | ||
}); | ||
|
||
$input.on('keyup change', function () | ||
{ | ||
table.draw(); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
window.columnFilters.select = function (input, table) | ||
{ | ||
var $input = $(input); | ||
var index = $input.closest('td').data('index'); | ||
$input.on('change', function () | ||
{ | ||
table.column(index).search($input.val()).draw(); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
window.columnFilters.text = function (input, table) | ||
{ | ||
var $input = $(input); | ||
var index = $input.closest('td').data('index'); | ||
$input.on('keyup change', function () | ||
{ | ||
table.column(index).search($input.val()).draw(); | ||
}); | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
$(function () | ||
{ | ||
$('.adminCheckboxAll').change(function () | ||
{ | ||
var checked = $(this).is(':checked'); | ||
$('.adminCheckboxRow').prop('checked', checked).filter(':first').change(); | ||
}); | ||
$(document).delegate('.adminCheckboxRow', 'change', function () | ||
{ | ||
var selected = []; | ||
$('.adminCheckboxRow:checked').each(function () | ||
{ | ||
selected.push($(this).val()); | ||
}); | ||
$('.tableActions .btnAction').each(function () | ||
{ | ||
var $this = $(this); | ||
var url = $this.data('href') + selected.join(','); | ||
$this.attr('href', url); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
$(function () | ||
{ | ||
$(document).delegate('.btn-delete', 'click', function (e) | ||
{ | ||
e.preventDefault(); | ||
var form = $(this).closest('form'); | ||
bootbox.confirm(window.admin.lang.table['delete-confirm'], function (result) | ||
{ | ||
if (result) | ||
{ | ||
form.submit(); | ||
} | ||
}); | ||
}); | ||
bootbox.setDefaults('locale', window.admin.locale); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
$(function () | ||
{ | ||
$(document).delegate('*[data-toggle="lightbox"]', 'click', function (e) | ||
{ | ||
e.preventDefault(); | ||
$(this).ekkoLightbox({ | ||
always_show_close: false | ||
}); | ||
}); | ||
}); |
Oops, something went wrong.