]> git.wh0rd.org - tt-rss.git/commitdiff
user editor: add primary action
authorAndrew Dolgov <noreply@fakecake.org>
Mon, 11 Dec 2017 15:41:32 +0000 (18:41 +0300)
committerAndrew Dolgov <noreply@fakecake.org>
Mon, 11 Dec 2017 15:41:32 +0000 (18:41 +0300)
classes/pref/users.php

index d65af168078478d34102b8331c2723022bc67da3..9728e3bc902e2033444f0effd0b0692706423b9e 100644 (file)
@@ -20,10 +20,12 @@ class Pref_Users extends Handler_Protected {
                function edit() {
                        global $access_level_names;
 
+                       print "<form id=\"user_edit_form\" onsubmit='return false' dojoType=\"dijit.form.Form\">";
+
                        print '<div dojoType="dijit.layout.TabContainer" style="height : 400px">
                        <div dojoType="dijit.layout.ContentPane" title="'.__('Edit user').'">';
 
-                       print "<form id=\"user_edit_form\" onsubmit='return false' dojoType=\"dijit.form.Form\">";
+                       //print "<form id=\"user_edit_form\" onsubmit='return false' dojoType=\"dijit.form.Form\">";
 
                        $id = (int) clean($_REQUEST["id"]);
 
@@ -87,8 +89,6 @@ class Pref_Users extends Handler_Protected {
 
                                print "</table>";
 
-                               print "</form>";
-                               
                        }
 
                        print '</div>'; #tab
@@ -99,11 +99,13 @@ class Pref_Users extends Handler_Protected {
                        print '</div>';
 
                        print "<div class=\"dlgButtons\">
-                               <button dojoType=\"dijit.form.Button\" type=\"submit\">".
+                               <button dojoType=\"dijit.form.Button\" class=\"btn-primary\" type=\"submit\" onclick=\"dijit.byId('userEditDlg').execute()\">".
                                __('Save')."</button>
                                <button dojoType=\"dijit.form.Button\" onclick=\"dijit.byId('userEditDlg').hide()\">".
                                __('Cancel')."</button></div>";
 
+                       print "</form>";
+
                        return;
                }