From 9f333cb9cf9d1d8a812b5146148af5e93c1bc8d0 Mon Sep 17 00:00:00 2001 From: Kevin Ngo Date: Thu, 4 Apr 2013 12:34:34 -0700 Subject: [PATCH] only show required error for one dropdown via js for now (bug 858094) --- media/js/mkt/themes_review.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/media/js/mkt/themes_review.js b/media/js/mkt/themes_review.js index f917f0318c..378480b982 100644 --- a/media/js/mkt/themes_review.js +++ b/media/js/mkt/themes_review.js @@ -286,7 +286,8 @@ textArea.blur(); themeActions.reject(i, 0); } else { - $('.reject-reason-detail-dropdown .error-required').show(); + $('.reject-reason-detail-dropdown .error-required', + nthTheme(i)).show(); } }; keymap[z.keys.ENTER] = submit; @@ -318,7 +319,8 @@ textArea.blur(); setReviewed(i, gettext('Duplicate')); } else { - $('.duplicate-dropdown .error-required').show(); + $('.duplicate-dropdown .error-required', + nthTheme(i)).show(); } }; keymap[z.keys.ENTER] = submit; @@ -339,7 +341,8 @@ textArea.blur(); setReviewed(i, gettext('Flagged')); } else { - $('.flag-dropdown .error-required').show(); + $('.flag-dropdown .error-required', + nthTheme(i)).show(); } }; keymap[z.keys.ENTER] = submit; @@ -360,7 +363,8 @@ textArea.blur(); setReviewed(i, gettext('Requested Info')); } else { - $('.moreinfo-dropdown .error-required').show(); + $('.moreinfo-dropdown .error-required', + nthTheme(i)).show(); } }; keymap[z.keys.ENTER] = submit;