diff options
author | Andrew Dolgov <[email protected]> | 2011-11-10 16:48:42 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2011-11-10 16:48:42 +0400 |
commit | 5638770de499a45d497c6c457f944c15aede545b (patch) | |
tree | 5ab0762908367128e82e9ddc0b80a9af00a73774 /modules/pref-prefs.php | |
parent | 59889f364146de54f8557c24879378595142a77c (diff) |
pref-prefs: keep lower buttons visible
Diffstat (limited to 'modules/pref-prefs.php')
-rw-r--r-- | modules/pref-prefs.php | 55 |
1 files changed, 33 insertions, 22 deletions
diff --git a/modules/pref-prefs.php b/modules/pref-prefs.php index 4826732ab..838c722c3 100644 --- a/modules/pref-prefs.php +++ b/modules/pref-prefs.php @@ -264,6 +264,31 @@ 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"]) { print_notice("Some preferences are only available in default profile."); } @@ -288,26 +313,6 @@ owner_uid = ".$_SESSION["uid"]." 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; $active_section = ""; @@ -479,17 +484,23 @@ 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=\"subop\" value=\"save-config\">"; - print "<p><button dojoType=\"dijit.form.Button\" type=\"submit\">". + print "<button dojoType=\"dijit.form.Button\" type=\"submit\">". __('Save configuration')."</button> "; print "<button dojoType=\"dijit.form.Button\" onclick=\"return editProfiles()\">". __('Manage profiles')."</button> "; 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>"; |