From 21a9c67de7074c3af1e448a653f7bd3035bafc8f Mon Sep 17 00:00:00 2001 From: wangyidong Date: Wed, 9 Jan 2013 07:53:02 +0000 Subject: [PATCH] * code for task#1046. --- module/bug/js/common.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/module/bug/js/common.js b/module/bug/js/common.js index a84d3a7969..8cc81b0307 100644 --- a/module/bug/js/common.js +++ b/module/bug/js/common.js @@ -1,5 +1,6 @@ $(function() { + if(typeof page == 'undefined') page = ''; if(page == 'create') { changeProductConfirmed = true; @@ -10,9 +11,12 @@ $(function() setAssignedTo(); } - $("#story").chosen({no_results_text:noResultsMatch}); - $("#task").chosen({no_results_text:noResultsMatch}); - $("#mailto").autocomplete(userList, { multiple: true, mustMatch: true}); + if(page == 'create' || page == 'edit') + { + $("#story").chosen({no_results_text:noResultsMatch}); + $("#task").chosen({no_results_text:noResultsMatch}); + $("#mailto").autocomplete(userList, { multiple: true, mustMatch: true}); + } }); /**