Merge "Add Special:Users as a synonym for Special:ListUsers"
[lhc/web/wiklou.git] / resources / src / mediawiki.special.block.js
index 3e6f684..b46df85 100644 (file)
@@ -26,7 +26,7 @@
                        pageRestrictionsWidget = infuseIfExists( $( '#mw-input-wpPageRestrictions' ) ),
                        namespaceRestrictionsWidget = infuseIfExists( $( '#mw-input-wpNamespaceRestrictions' ) ),
                        createAccountWidget = infuseIfExists( $( '#mw-input-wpCreateAccount' ) ),
-                       userChangedCreateAccount = $( '#mw-input-wpBlockId' ).val() || $( '#mw-input-wpWasPosted' ).val() || false,
+                       userChangedCreateAccount = mw.config.get( 'wgCreateAccountDirty' ),
                        updatingBlockOptions = false;
 
                function updateBlockOptions() {