Use AJAX in foreign key change
This commit is contained in:
parent
6b4ee48ae8
commit
4358ba8181
|
@ -51,7 +51,7 @@ foreach (table_status() as $name => $table_status) {
|
||||||
<p>
|
<p>
|
||||||
<?php if ($row["db"] == "") { ?>
|
<?php if ($row["db"] == "") { ?>
|
||||||
<?php echo lang('Target table'); ?>:
|
<?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="">
|
<input type="hidden" name="change-js" value="">
|
||||||
<noscript><p><input type="submit" name="change" value="<?php echo lang('Change'); ?>"></noscript>
|
<noscript><p><input type="submit" name="change" value="<?php echo lang('Change'); ?>"></noscript>
|
||||||
<table cellspacing="0">
|
<table cellspacing="0">
|
||||||
|
|
Loading…
Reference in a new issue