From 27a6b676a872d94f75375ba79b284f39a2adbe5b Mon Sep 17 00:00:00 2001 From: kurund Date: Fri, 19 Dec 2014 00:51:45 +0530 Subject: [PATCH] code cleanup --- js/Common.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/js/Common.js b/js/Common.js index 3f679f23a7..e1e66a8af4 100644 --- a/js/Common.js +++ b/js/Common.js @@ -312,9 +312,8 @@ CRM.strings = CRM.strings || {}; // quickform does not support disabled option, so yet another hack to // add disabled property for option values - $('option[value^=crm_disabled_opt]', this).each(function () { - $(this).attr('disabled', 'disabled'); - }); + $('option[value^=crm_disabled_opt]').attr('disabled', 'disabled'); + // Defaults for single-selects if ($el.is('select:not([multiple])')) { settings.minimumResultsForSearch = 10; -- 2.25.1