Skip to content

Commit

Permalink
Use AJAX in foreign key change
Browse files Browse the repository at this point in the history
  • Loading branch information
vrana committed May 5, 2011
1 parent 6b4ee48 commit 4358ba8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adminer/foreign.inc.php
Expand Up @@ -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">
Expand Down

0 comments on commit 4358ba8

Please sign in to comment.