Partial bootstrap 4.5 support
This commit is contained in:
Vendored
+17
-4
@@ -45,7 +45,7 @@ function revalidate_screen() {
|
||||
$(this).mask($(this).data('format'), {});
|
||||
});
|
||||
|
||||
$('[data-toggle="popover"]').popover();
|
||||
//$('[data-toggle="popover"]').popover();
|
||||
|
||||
$('select').each(function () {
|
||||
if (typeof $(this).data('value') !== "undefined" && $(this).data('value') !== '') {
|
||||
@@ -68,6 +68,19 @@ function revalidate_screen() {
|
||||
liveSearch: true
|
||||
});
|
||||
});
|
||||
|
||||
$(".wysiwyg").each(function () {
|
||||
$(this).trumbowyg();
|
||||
});
|
||||
|
||||
$(".form-control-range").each(function(i, item){
|
||||
$(item).on('change', function(item, i){
|
||||
$(item.currentTarget)
|
||||
.parent()
|
||||
.find('.range-monitor')
|
||||
.html(item.currentTarget.value + "%");
|
||||
})
|
||||
});
|
||||
|
||||
$('.popup-toggle').each(() => {
|
||||
var template = '<div class="modal-dialog"> <div class="modal-content"><div class="modal-header"><button type="button" class="close" data-dismiss="modal"> X </button><h4 class="modal-title">Modal Header</h4></div><div class="modal-body">{{aaa}}</div><div class="modal-footer"><button type="button" class="btn btn-default" data-dismiss="modal">Close</button></div></div>';
|
||||
@@ -436,7 +449,7 @@ $('.remote-element').each(function () {
|
||||
//============================== Template Boot
|
||||
|
||||
/* Função de aparecer ou desaparecer o menu lateral */
|
||||
$("#menu-toggle").on('click', function (e) {
|
||||
$(".menu-toggle").on('click', function (e) {
|
||||
e.preventDefault();
|
||||
//e.preventPropagation();
|
||||
$("#wrapper").toggleClass("toggled");
|
||||
@@ -449,7 +462,7 @@ if (user_config.menu_default) {
|
||||
}
|
||||
|
||||
/* Função de aparecer ou desaparecer o menu lateral Secundário*/
|
||||
$("#menu-toggle").on('contextmenu', function (e) {
|
||||
$(".menu-toggle").on('contextmenu', function (e) {
|
||||
e.preventDefault();
|
||||
//e.preventPropagation();
|
||||
alert("Configs maluquinhas");
|
||||
@@ -597,4 +610,4 @@ function open_popup(source) {
|
||||
$('#modal').html(template).modal('show');
|
||||
revalidate_screen();
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user