Merge "Selenium: replace UserLoginPage with BlankPage where possible"
[lhc/web/wiklou.git] / resources / src / mediawiki.legacy / protect.js
index 6988576..1c4824f 100644 (file)
                getExpiryInputs().on( 'input change', updateExpiry );
                getLevelSelectors().on( 'change', updateLevels );
 
-               $( '#mwProtectSet > tbody > tr:first' ).after( $row );
+               $( '#mwProtectSet > tbody > tr' ).first().after( $row );
 
                // If there is only one protection type, there is nothing to chain
                if ( $( '[id ^= mw-protect-table-]' ).length > 1 ) {