1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2024-12-25 15:22:24 +01:00

Fix minore

This commit is contained in:
Thomas Zilio 2019-09-16 09:58:05 +02:00
parent 4a61503064
commit 917234a3c6

View File

@ -18,7 +18,7 @@ function openModal(title, href, generate_id) {
id = generate_id;
}
if ($(id).length == 0){
if ($(id).length == 0) {
$('#modals').append('<div class="modal fade" id="' + id.replace("#", "") + '" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" data-keyboard="true"></div>');
}
@ -29,7 +29,7 @@ function openModal(title, href, generate_id) {
}
});
var content = '<div class="modal-dialog modal-lg">\
var content = '<div class="modal-dialog modal-lg">\
<div class="modal-content">\
<div class="modal-header bg-light-blue">\
<button type="button" class="close" data-dismiss="modal">\
@ -84,7 +84,7 @@ function getUrlVars() {
var search = window.location.search.substring(1);
if (!search) return {};
var results = JSON.parse('{"' + search.replace(/&/g, '","').replace(/=/g,'":"') + '"}', function(key, value) {
var results = JSON.parse('{"' + search.replace(/&/g, '","').replace(/=/g, '":"') + '"}', function (key, value) {
return key === "" ? value : decodeURIComponent(value)
});
@ -384,7 +384,7 @@ function submitAjax(form, data, callback, errorCallback) {
if (!data) data = {};
if(valid) {
if (valid) {
$("#main_loading").show();
content_was_modified = false;
@ -455,17 +455,17 @@ function renderMessages() {
info = messages.info ? messages.info : [];
info.forEach(function (element) {
toastr["success"](element);
if (element) toastr["success"](element);
});
warning = messages.warning ? messages.warning : [];
warning.forEach(function (element) {
toastr["warning"](element);
if (element) toastr["warning"](element);
});
error = messages.error ? messages.error : [];
error.forEach(function (element) {
toastr["error"](element);
if (element) toastr["error"](element);
});
}