commit bf744db30c9c1cd8e6611317092ab1c8983da67d Author: Ryan McCabe rmccabe@redhat.com Date: Mon Jan 23 11:20:32 2012 -0500
Fix bits that went missing for the new "add user" functionality
luci/public/js/admin.js | 14 ++++++++++++++ luci/templates/admin.html | 3 ++- 2 files changed, 16 insertions(+), 1 deletions(-) --- diff --git a/luci/public/js/admin.js b/luci/public/js/admin.js new file mode 100644 index 0000000..b09672c --- /dev/null +++ b/luci/public/js/admin.js @@ -0,0 +1,14 @@ +$(function() { + $('#add_user_dialog').dialog({ + modal: true, + title: 'Add a User', + width: '720px', + autoOpen: false, + draggable: false, + resizable: true, + closeOnEscape: false, + open: function(event, ui) { + $(this).parent().children().children('.ui-dialog-titlebar-close').hide(); + }, + }); +}) diff --git a/luci/templates/admin.html b/luci/templates/admin.html index 1380e0c..10a0d39 100644 --- a/luci/templates/admin.html +++ b/luci/templates/admin.html @@ -251,7 +251,7 @@ </div> </div> </div> - + <div class="hidden"> <div id="add_user_dialog"> <form name="manage_create_user" method="post" action="${tg.url('admin_cmd' + '?command=create')}"> <div class="row"> @@ -265,5 +265,6 @@ </div> </form> </div> + </div> </body> </html>
luci-commits@lists.fedorahosted.org