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,7 +205,8 @@ var global_load = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function setContentError(data, back, tab) {
|
function setContentError(data, back, tab) {
|
||||||
alert = "<div class=\"alert alert-danger\">" + data.statusText +
|
$("#popup").modal('hide');
|
||||||
|
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>";
|
||||||
$('#alert').removeClass('old');
|
$('#alert').removeClass('old');
|
||||||
|
@ -214,7 +215,7 @@ var global_load = null;
|
||||||
$('#container').html(data.responseText);
|
$('#container').html(data.responseText);
|
||||||
event("#container");
|
event("#container");
|
||||||
}
|
}
|
||||||
function load(pageurl, conf, tab) {
|
function load(pageurl, conf, tab) {
|
||||||
data = {};
|
data = {};
|
||||||
typemethode = "GET";
|
typemethode = "GET";
|
||||||
back = false;
|
back = false;
|
||||||
|
|
Loading…
Reference in New Issue