Fix: Confirm box not opened
This commit is contained in:
parent
f575dd4ae5
commit
b120eb9a15
@ -2223,6 +2223,7 @@ class Form
|
|||||||
{
|
{
|
||||||
$autoOpen=true;
|
$autoOpen=true;
|
||||||
$dialogconfirm='dialog-confirm';
|
$dialogconfirm='dialog-confirm';
|
||||||
|
$button='';
|
||||||
if (! is_int($useajax))
|
if (! is_int($useajax))
|
||||||
{
|
{
|
||||||
$button=$useajax;
|
$button=$useajax;
|
||||||
@ -2306,6 +2307,13 @@ class Form
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
var button=\''.$button.'\';
|
||||||
|
if (button.length > 0) {
|
||||||
|
$( "#" + button ).click(function() {
|
||||||
|
$("#'.$dialogconfirm.'").dialog(\'open\');
|
||||||
|
});
|
||||||
|
}
|
||||||
});
|
});
|
||||||
</script>';
|
</script>';
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user