popup schliessen
This commit is contained in:
parent
f86695c9c3
commit
a316c1298c
|
@ -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\">×</button>"
|
"<button type=\"button\" class=\"close\" data-dismiss=\"alert\">×</button>"
|
||||||
+ "</div>";
|
+ "</div>";
|
||||||
|
|
Loading…
Reference in New Issue