diff options
Diffstat (limited to 'settings/js/personal.js')
-rw-r--r-- | settings/js/personal.js | 30 |
1 files changed, 22 insertions, 8 deletions
diff --git a/settings/js/personal.js b/settings/js/personal.js index 65bb81b0f04..9578fb2c890 100644 --- a/settings/js/personal.js +++ b/settings/js/personal.js @@ -48,12 +48,26 @@ $(document).ready(function(){ }); return false; }); - - // reset value when edited, workaround because of .select() not working with disabled inputs - $('#webdav').focus(function(event){ - openidValue = $('#webdav').val(); - }); - $('#webdav').blur(function(event){ - $('#webdav').val(openidValue); - }); } ); + +OC.msg={ + startSaving:function(selector){ + $(selector) + .html( t('settings', 'Saving...') ) + .removeClass('success') + .removeClass('error') + .stop(true, true) + .show(); + }, + finishedSaving:function(selector, data){ + if( data.status == "success" ){ + $(selector).html( data.data.message ) + .addClass('success') + .stop(true, true) + .delay(3000) + .fadeOut(600); + }else{ + $(selector).html( data.data.message ).addClass('error'); + } + } +} |