Adjust print styles for thumb
[lhc/web/wiklou.git] / resources / src / mediawiki.special / mediawiki.special.block.js
index 8dedb9b..aca335e 100644 (file)
@@ -1,4 +1,4 @@
-/**
+/*!
  * JavaScript for Special:Block
  */
 ( function ( mw, $ ) {
@@ -12,7 +12,7 @@
                function updateBlockOptions( instant ) {
                        var blocktarget = $.trim( $blockTarget.val() ),
                                isEmpty = blocktarget === '',
-                               isIp = mw.util.isIPv4Address( blocktarget, true ) || mw.util.isIPv6Address( blocktarget, true ),
+                               isIp = mw.util.isIPAddress( blocktarget, true ),
                                isIpRange = isIp && blocktarget.match( /\/\d+$/ );
 
                        if ( isIp && !isEmpty ) {