MidCOM svn: r14410 - branches/MidCOM_2_8/midcom.helper.datamanager2/static/chooser

flack midcom-commits at lists.midgard-project.org
Mon Jan 14 16:41:40 CET 2008


Author: flack
Date: Mon Jan 14 16:41:40 2008
New Revision: 14410
URL: http://trac.midgard-project.org/software/changeset/14410

Log:
backport 14408 and 14409

Modified:
   branches/MidCOM_2_8/midcom.helper.datamanager2/static/chooser/jquery.chooser_widget.js

Modified: branches/MidCOM_2_8/midcom.helper.datamanager2/static/chooser/jquery.chooser_widget.js
==============================================================================
--- branches/MidCOM_2_8/midcom.helper.datamanager2/static/chooser/jquery.chooser_widget.js	(original)
+++ branches/MidCOM_2_8/midcom.helper.datamanager2/static/chooser/jquery.chooser_widget.js	Mon Jan 14 16:41:40 2008
@@ -307,6 +307,11 @@
         creation_dialog = jQuery('#' + options.widget_id + '_creation_dialog');
         create_button = jQuery('#' + options.widget_id + '_create_button');
         create_button.bind('click', function(){
+	        if (jQuery('#' + options.widget_id + '_creation_dialog').css('display') == 'block')
+	        {
+	           jQuery('#' + options.widget_id + '_creation_dialog').hide();
+	           return;
+	        }
             var creation_url = options.creation_handler;
             
             if (last_term != "undefined")
@@ -371,7 +376,7 @@
         list_jq_items,
         active = -1,
         data,
-        block_width = 100;
+        block_width = 90;
 
     list.mouseover( function(event) {
         var jq_elem = jQuery(target(event)).addClass(CLASSES.HOVER);


More information about the midcom-commits mailing list