jenkins-bot has submitted this change and it was merged.

Change subject: Fade in/out elements that are moved in the notifications list
......................................................................


Fade in/out elements that are moved in the notifications list

Bug: T126214
Change-Id: Iad5df1f56bfbd12cb6f42dd6e73860bdcc27cd68
---
M modules/ui/mw.echo.ui.SortedListWidget.js
1 file changed, 14 insertions(+), 0 deletions(-)

Approvals:
  Mattflaschen: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/modules/ui/mw.echo.ui.SortedListWidget.js 
b/modules/ui/mw.echo.ui.SortedListWidget.js
index 9316d78..26841e7 100644
--- a/modules/ui/mw.echo.ui.SortedListWidget.js
+++ b/modules/ui/mw.echo.ui.SortedListWidget.js
@@ -45,6 +45,20 @@
        /* Methods */
 
        /**
+        * @inheritdoc
+        */
+       mw.echo.ui.SortedListWidget.prototype.onItemSortChange = function ( 
item ) {
+               var widget = this;
+
+               item.$element.fadeOut( 400, function () {
+                       widget.removeItems( item );
+
+                       item.$element.hide();
+                       widget.addItems( item );
+                       item.$element.fadeIn( 400 );
+               } );
+       };
+       /**
         * Set the group element.
         *
         * If an element is already set, items will be moved to the new element.

-- 
To view, visit https://gerrit.wikimedia.org/r/295318
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Iad5df1f56bfbd12cb6f42dd6e73860bdcc27cd68
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/extensions/Echo
Gerrit-Branch: master
Gerrit-Owner: Mooeypoo <[email protected]>
Gerrit-Reviewer: Mattflaschen <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to