Permalink
Browse files

Use AJAX in foreign key change

  • Loading branch information...
vrana committed Apr 23, 2011
1 parent 6b4ee48 commit 4358ba818120e563930854530940f97e6913434c
Showing with 1 addition and 1 deletion.
  1. +1 −1 adminer/foreign.inc.php
View
@@ -51,7 +51,7 @@
<p>
<?php if ($row["db"] == "") { ?>
<?php echo lang('Target table'); ?>:
-<?php echo html_select("table", $referencable, $row["table"], "this.form['change-js'].value = '1'; this.form.submit();"); ?>
+<?php echo html_select("table", $referencable, $row["table"], "this.form['change-js'].value = '1'; if (!ajaxForm(this.form)) this.form.submit();"); ?>
<input type="hidden" name="change-js" value="">
<noscript><p><input type="submit" name="change" value="<?php echo lang('Change'); ?>"></noscript>
<table cellspacing="0">

0 comments on commit 4358ba8

Please sign in to comment.