Browse Source

Fixed regression due to the update of JQuery UI

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@2781 a333f486-631f-4898-b8df-5754b55c2be0
romainq 12 years ago
parent
commit
fb9bcfc337
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/forms.class.inc.php

+ 1 - 1
application/forms.class.inc.php

@@ -268,7 +268,7 @@ $('#$sDialogId').dialog({
 		title: '$sDialogTitle',
 		title: '$sDialogTitle',
 		buttons: [
 		buttons: [
 		{ text: "$sOkButtonLabel", click: function() {
 		{ text: "$sOkButtonLabel", click: function() {
-			var oForm = $(this).parents('.ui-dialog :first').find('form');
+			var oForm = $(this).closest('.ui-dialog').find('form');
 			oForm.submit();
 			oForm.submit();
 		} },
 		} },
 		{ text: "$sCancelButtonLabel", click: function() { KillAllMenus(); $(this).dialog( "close" ); $(this).remove(); } },
 		{ text: "$sCancelButtonLabel", click: function() { KillAllMenus(); $(this).dialog( "close" ); $(this).remove(); } },