r65335 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r65334‎ | r65335 | r65336 >
Date:18:49, 20 April 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Fixed error message for when email already exists
Modified paths:
  • /trunk/extensions/Storyboard/specials/Story/Story_body.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Storyboard/specials/Story/Story_body.php
@@ -372,6 +372,14 @@
373373 $wgOut->addInlineScript( <<<EOT
374374 jQuery(document).ready(function() {
375375 jQuery("#storystate option[value='$story->story_state']").attr('selected', 'selected');
 376+
 377+ jQuery("#storyform").validate({
 378+ messages: {
 379+ storytitle: {
 380+ remote: jQuery.validator.format("<b>{0}</b> is already taken, please choose a different title.") // TODO: i18n
 381+ }
 382+ }
 383+ });
376384 });
377385
378386 addOnloadHook(
@@ -382,14 +390,6 @@
383391 jQuery(document).ready(function(){
384392 jQuery("#storyform").validate();
385393 });
386 -jQuery("#storyform").validate({
387 - messages: {
388 - storytitle: {
389 - required: " ",
390 - remote: jQuery.validator.format("{0} is already taken, please choose a different title.")
391 - }
392 - }
393 -});
394394 EOT
395395 );
396396 }

Follow-up revisions

RevisionCommit summaryAuthorDate
r65338Follow up to r65334 and r65335 - also fixed title validation in storysubmissi...jeroendedauw19:10, 20 April 2010

Status & tagging log