pref-prefs: keep lower buttons visible
This commit is contained in:
parent
59889f3641
commit
5638770de4
1 changed files with 33 additions and 22 deletions
|
@ -264,6 +264,31 @@
|
||||||
|
|
||||||
print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">";
|
print "<div dojoType=\"dijit.layout.AccordionPane\" selected=\"true\" title=\"".__('Preferences')."\">";
|
||||||
|
|
||||||
|
print "<form dojoType=\"dijit.form.Form\" id=\"changeSettingsForm\">";
|
||||||
|
|
||||||
|
print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\">
|
||||||
|
evt.preventDefault();
|
||||||
|
if (this.validate()) {
|
||||||
|
console.log(dojo.objectToQuery(this.getValues()));
|
||||||
|
|
||||||
|
new Ajax.Request('backend.php', {
|
||||||
|
parameters: dojo.objectToQuery(this.getValues()),
|
||||||
|
onComplete: function(transport) {
|
||||||
|
var msg = transport.responseText;
|
||||||
|
if (msg.match('PREFS_THEME_CHANGED')) {
|
||||||
|
window.location.reload();
|
||||||
|
} else {
|
||||||
|
notify_info(msg);
|
||||||
|
}
|
||||||
|
} });
|
||||||
|
}
|
||||||
|
</script>";
|
||||||
|
|
||||||
|
|
||||||
|
print '<div dojoType="dijit.layout.BorderContainer" gutters="false">';
|
||||||
|
|
||||||
|
print '<div dojoType="dijit.layout.ContentPane" region="center" style="overflow-y : auto">';
|
||||||
|
|
||||||
if ($_SESSION["profile"]) {
|
if ($_SESSION["profile"]) {
|
||||||
print_notice("Some preferences are only available in default profile.");
|
print_notice("Some preferences are only available in default profile.");
|
||||||
}
|
}
|
||||||
|
@ -288,26 +313,6 @@
|
||||||
owner_uid = ".$_SESSION["uid"]."
|
owner_uid = ".$_SESSION["uid"]."
|
||||||
ORDER BY section_id,short_desc");
|
ORDER BY section_id,short_desc");
|
||||||
|
|
||||||
print "<form dojoType=\"dijit.form.Form\" id=\"changeSettingsForm\">";
|
|
||||||
|
|
||||||
print "<script type=\"dojo/method\" event=\"onSubmit\" args=\"evt\">
|
|
||||||
evt.preventDefault();
|
|
||||||
if (this.validate()) {
|
|
||||||
console.log(dojo.objectToQuery(this.getValues()));
|
|
||||||
|
|
||||||
new Ajax.Request('backend.php', {
|
|
||||||
parameters: dojo.objectToQuery(this.getValues()),
|
|
||||||
onComplete: function(transport) {
|
|
||||||
var msg = transport.responseText;
|
|
||||||
if (msg.match('PREFS_THEME_CHANGED')) {
|
|
||||||
window.location.reload();
|
|
||||||
} else {
|
|
||||||
notify_info(msg);
|
|
||||||
}
|
|
||||||
} });
|
|
||||||
}
|
|
||||||
</script>";
|
|
||||||
|
|
||||||
$lnum = 0;
|
$lnum = 0;
|
||||||
|
|
||||||
$active_section = "";
|
$active_section = "";
|
||||||
|
@ -479,17 +484,23 @@
|
||||||
|
|
||||||
print "</table>";
|
print "</table>";
|
||||||
|
|
||||||
|
print '</div>'; # inside pane
|
||||||
|
print '<div dojoType="dijit.layout.ContentPane" region="bottom">';
|
||||||
|
|
||||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"op\" value=\"pref-prefs\">";
|
||||||
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"subop\" value=\"save-config\">";
|
print "<input dojoType=\"dijit.form.TextBox\" style=\"display : none\" name=\"subop\" value=\"save-config\">";
|
||||||
|
|
||||||
print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">".
|
print "<button dojoType=\"dijit.form.Button\" type=\"submit\">".
|
||||||
__('Save configuration')."</button> ";
|
__('Save configuration')."</button> ";
|
||||||
|
|
||||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return editProfiles()\">".
|
print "<button dojoType=\"dijit.form.Button\" onclick=\"return editProfiles()\">".
|
||||||
__('Manage profiles')."</button> ";
|
__('Manage profiles')."</button> ";
|
||||||
|
|
||||||
print "<button dojoType=\"dijit.form.Button\" onclick=\"return validatePrefsReset()\">".
|
print "<button dojoType=\"dijit.form.Button\" onclick=\"return validatePrefsReset()\">".
|
||||||
__('Reset to defaults')."</button></p>";
|
__('Reset to defaults')."</button>";
|
||||||
|
|
||||||
|
print '</div>'; # inner pane
|
||||||
|
print '</div>'; # border container
|
||||||
|
|
||||||
print "</form>";
|
print "</form>";
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue