]> source.dussan.org Git - nextcloud-server.git/commitdiff
Add sliding animation
authorRoeland Jago Douma <roeland@famdouma.nl>
Wed, 10 Aug 2016 07:17:14 +0000 (09:17 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Wed, 10 Aug 2016 07:17:14 +0000 (09:17 +0200)
settings/js/authtoken_view.js

index 03d6c188f6e3d8ff17bdf822ef76b4e8fb7f1201..6eb04b63f201b4a10a125ed5bf34c132d904106f 100644 (file)
                },
 
                _toggleFormResult: function (showForm) {
-                       this._form.toggleClass('hidden', !showForm);
-                       this._result.toggleClass('hidden', showForm);
+                       if (showForm) {
+                               this._result.slideUp();
+                               this._form.slideDown();
+                       } else {
+                               this._form.slideUp();
+                               this._result.slideDown();
+                       }
                }
        });