move notifications full-screen handling to notifications widget
This commit is contained in:
parent
9d69792e08
commit
8d9c47acdf
@ -2,7 +2,6 @@
|
||||
* redbasic theme specific JavaScript
|
||||
*/
|
||||
|
||||
var notifications_parent;
|
||||
$(document).ready(function() {
|
||||
|
||||
// CSS3 calc() fallback (for unsupported browsers)
|
||||
@ -84,19 +83,6 @@ $(document).ready(function() {
|
||||
}
|
||||
});
|
||||
|
||||
notifications_parent = $('#notifications_wrapper')[0].parentElement.id;
|
||||
$('#notifications-btn').click(function() {
|
||||
if($('#notifications_wrapper').hasClass('fs'))
|
||||
$('#notifications_wrapper').prependTo('#' + notifications_parent);
|
||||
else
|
||||
$('#notifications_wrapper').prependTo('section');
|
||||
|
||||
$('#notifications_wrapper').toggleClass('fs');
|
||||
if($('#navbar-collapse-2').hasClass('show')){
|
||||
$('#navbar-collapse-2').removeClass('show');
|
||||
}
|
||||
});
|
||||
|
||||
$("input[data-role=cat-tagsinput]").tagsinput({
|
||||
tagClass: 'badge badge-pill badge-warning text-dark'
|
||||
});
|
||||
|
@ -28,6 +28,22 @@
|
||||
|
||||
{{if $module == 'display'}}
|
||||
<script>
|
||||
var notifications_parent;
|
||||
$(document).ready(function() {
|
||||
notifications_parent = $('#notifications_wrapper')[0].parentElement.id;
|
||||
$('#notifications-btn').click(function() {
|
||||
if($('#notifications_wrapper').hasClass('fs'))
|
||||
$('#notifications_wrapper').prependTo('#' + notifications_parent);
|
||||
else
|
||||
$('#notifications_wrapper').prependTo('section');
|
||||
|
||||
$('#notifications_wrapper').toggleClass('fs');
|
||||
if($('#navbar-collapse-2').hasClass('show')){
|
||||
$('#navbar-collapse-2').removeClass('show');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
$(document).on('click', '.notification', function(e) {
|
||||
var b64mid = $(this).data('b64mid');
|
||||
var path = $(this)[0].pathname.substr(1,7);
|
||||
|
Reference in New Issue
Block a user