Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Register
Sign in
Toggle navigation
Menu
Open sidebar
Zvonimir
ISPConfig 3
Commits
bb252afb
Commit
bb252afb
authored
May 08, 2014
by
Marius Cramer
Browse files
- added missing changes from previous commits
parent
374d7e6e
Changes
1
Hide whitespace changes
Inline
Side-by-side
interface/web/js/scrigo.js.php
View file @
bb252afb
...
...
@@ -88,7 +88,9 @@ function hideLoadIndicator() {
}
}
function
onAfterContentLoad
()
{
function
onAfterContentLoad
(
url
,
data
)
{
if
(!
data
)
data =
''
;
else
data =
'&'
+
data
;
<?php
if
(
$server_config_array
[
'misc'
][
'use_combobox'
]
==
'y'
){
?>
...
...
@@ -96,7 +98,7 @@ if($server_config_array['misc']['use_combobox'] == 'y'){
<?php
}
?>
callHook
('
onAfterContentLoad
');
callHook
('
onAfterContentLoad
'
,
{'
url
'
:
url
,
'
data
'
:
data
}
);
}
function
loadContentRefresh
(
pagename
)
{
...
...
@@ -112,7 +114,7 @@ function loadContentRefresh(pagename) {
success: function(data, textStatus, jqXHR) {
hideLoadIndicator();
jQuery('#pageContent').html(jqXHR.responseText);
onAfterContentLoad();
onAfterContentLoad(
pagename, "refresh="+document.getElementById('refreshinterval').value
);
pageFormChanged = false;
},
error: function() {
...
...
@@ -191,7 +193,7 @@ function submitLoginForm(formname) {
document.location.href = 'index.php';
} else {
jQuery('#pageContent').html(jqXHR.responseText);
onAfterContentLoad();
onAfterContentLoad(
'content.php', jQuery('#'+formname).serialize()
);
pageFormChanged = false;
}
loadMenus();
...
...
@@ -229,7 +231,7 @@ function submitForm(formname,target) {
//window.setTimeout('loadContent(redirect)', 1000);
} else {
jQuery('#pageContent').html(jqXHR.responseText);
onAfterContentLoad();
onAfterContentLoad(
target, jQuery('#'+formname).serialize()
);
pageFormChanged = false;
}
hideLoadIndicator();
...
...
@@ -268,7 +270,7 @@ function submitFormConfirm(formname,target,confirmation) {
//window.setTimeout('loadContent(redirect)', 1000);
} else {
jQuery('#pageContent').html(jqXHR.responseText);
onAfterContentLoad();
onAfterContentLoad(
target, jQuery('#'+formname).serialize()
);
pageFormChanged = false;
}
hideLoadIndicator();
...
...
@@ -346,7 +348,7 @@ function loadContent(pagename) {
//jQuery.each(reponseScript, function(idx, val) { eval(val.text); } );
jQuery('#pageContent').html(jqXHR.responseText);
onAfterContentLoad();
onAfterContentLoad(
pagename, (params ? params : null)
);
pageFormChanged = false;
}
hideLoadIndicator();
...
...
@@ -373,7 +375,7 @@ function loadInitContent() {
loadContent(parts[1]);
} else {
jQuery('#pageContent').html(jqXHR.responseText);
onAfterContentLoad();
onAfterContentLoad(
'content.php', "s_mod=login
&s_pg=index"
);
pageFormChanged = false;
}
hideLoadIndicator();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment