summaryrefslogtreecommitdiffstats
path: root/admin/js
diff options
context:
space:
mode:
authorJakob Sack <kde@jakobsack.de>2011-04-16 17:49:57 +0200
committerJakob Sack <kde@jakobsack.de>2011-04-16 17:49:57 +0200
commitaf1e48df80680dfa2b6e1367752a41aee750c308 (patch)
tree6207783e6124c9fb795f2eb12b3d67886c239731 /admin/js
parentb5f913a3fc66a3036fc7ea291d67a72f7a0ecd40 (diff)
downloadnextcloud-server-af1e48df80680dfa2b6e1367752a41aee750c308.tar.gz
nextcloud-server-af1e48df80680dfa2b6e1367752a41aee750c308.zip
Changes in the user experience
Diffstat (limited to 'admin/js')
-rw-r--r--admin/js/users.js101
1 files changed, 101 insertions, 0 deletions
diff --git a/admin/js/users.js b/admin/js/users.js
new file mode 100644
index 00000000000..6d59a2efb7c
--- /dev/null
+++ b/admin/js/users.js
@@ -0,0 +1,101 @@
+$(document).ready(function(){
+ // Dialog for adding users
+ $( "#adduser-form" ).dialog({
+ autoOpen: false,
+ height: 300,
+ width: 350,
+ modal: true,
+ buttons: {
+ "Create an account": function() {
+ $( this ).dialog( "close" );
+ },
+ Cancel: function() {
+ $( this ).dialog( "close" );
+ }
+ },
+ close: function() {
+ allFields.val( "" ).removeClass( "ui-state-error" );
+ }
+ });
+
+ $( "#adduser-button" )
+ .click(function() {
+ $( "#adduser-form" ).dialog( "open" );
+ return false;
+ });
+
+ // Dialog for adding users
+ $( "#edituser-form" ).dialog({
+ autoOpen: false,
+ height: 300,
+ width: 350,
+ modal: true,
+ buttons: {
+ "Edit password": function() {
+ $( this ).dialog( "close" );
+ },
+ Cancel: function() {
+ $( this ).dialog( "close" );
+ }
+ },
+ close: function() {
+ allFields.val( "" ).removeClass( "ui-state-error" );
+ }
+ });
+
+ $( ".edituser-button" )
+ .click(function() {
+ $( "#edituser-form" ).dialog( "open" );
+ return false;
+ });
+
+ // Dialog for adding users
+ $( "#removeuser-form" ).dialog({
+ autoOpen: false,
+ height: 300,
+ width: 350,
+ modal: true,
+ buttons: {
+ "Remove user": function() {
+ $( this ).dialog( "close" );
+ },
+ Cancel: function() {
+ $( this ).dialog( "close" );
+ }
+ },
+ close: function() {
+ allFields.val( "" ).removeClass( "ui-state-error" );
+ }
+ });
+
+ $( ".removeuser-button" )
+ .click(function() {
+ $( "#removeuser-form" ).dialog( "open" );
+ return false;
+ });
+
+ // Dialog for adding users
+ $( "#removegroup-form" ).dialog({
+ autoOpen: false,
+ height: 300,
+ width: 350,
+ modal: true,
+ buttons: {
+ "Remove group": function() {
+ $( this ).dialog( "close" );
+ },
+ Cancel: function() {
+ $( this ).dialog( "close" );
+ }
+ },
+ close: function() {
+ allFields.val( "" ).removeClass( "ui-state-error" );
+ }
+ });
+
+ $( ".removegroup-button" )
+ .click(function() {
+ $( "#removegroup-form" ).dialog( "open" );
+ return false;
+ });
+} );