popup schliessen

This commit is contained in:
Martin Müller 2014-10-25 15:17:56 +02:00
parent f86695c9c3
commit a316c1298c
1 changed files with 4 additions and 3 deletions

View File

@ -71,7 +71,6 @@ var global_load = null;
}); });
$(where + " form").submit(function(e) { $(where + " form").submit(function(e) {
$("#popup").modal('hide');
if ($(this).attr('enctype') != 'multipart/form-data') { if ($(this).attr('enctype') != 'multipart/form-data') {
stopLoad(e); stopLoad(e);
if ($(this).hasClass('tableForm')) { if ($(this).hasClass('tableForm')) {
@ -163,6 +162,7 @@ var global_load = null;
}); });
} }
function setContent(data, back, tab, backignore) { function setContent(data, back, tab, backignore) {
$("#popup").modal('hide');
title = data.split('<title>')[1].split('</title>')[0]; title = data.split('<title>')[1].split('</title>')[0];
if (title.trim().length > 0) { if (title.trim().length > 0) {
document.title = title.trim(); document.title = title.trim();
@ -205,6 +205,7 @@ var global_load = null;
} }
} }
function setContentError(data, back, tab) { function setContentError(data, back, tab) {
$("#popup").modal('hide');
alert = "<div class=\"alert alert-danger\">" + data.statusText + alert = "<div class=\"alert alert-danger\">" + data.statusText +
"<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>" "<button type=\"button\" class=\"close\" data-dismiss=\"alert\">&times;</button>"
+ "</div>"; + "</div>";