Преглед на файлове

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 години
родител
ревизия
fb9bcfc337
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      application/forms.class.inc.php

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

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