Merge "RCFilters: Add range group filters - limit, days and hours"
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / ui / mw.rcfilters.ui.FormWrapperWidget.js
index 9c82451..0abaff2 100644 (file)
                        this.$element.find( '.mw-tagfilter-label' ).closest( 'tr' ).detach();
                }
 
+               // Hide limit and days
+               this.$element.find( '.rclinks' ).detach();
+
                if ( !this.$element.find( '.mw-recentchanges-table tr' ).length ) {
+                       this.$element.find( '.mw-recentchanges-table' ).detach();
                        this.$element.find( 'hr' ).detach();
                }
+               if ( !this.$element.find( '.rcshowhide' ).contents().length ) {
+                       this.$element.find( '.rcshowhide' ).detach();
+                       // If we're hiding rcshowhide, the '<br>'s are around it,
+                       // there's no need for them either.
+                       this.$element.find( 'br' ).detach();
+               }
        };
 }( mediaWiki ) );