Browse foreign values did not work with inline edit
Use known message "Browse foreign values" instead of "Search foreign data" Use jQuery to attach handler instead of "onclick" for browse_foreigners.php when called from sql.php
This commit is contained in:
@@ -98,6 +98,16 @@ require_once './libraries/header_scripts.inc.php';
|
||||
//<![CDATA[
|
||||
self.focus();
|
||||
function formupdate(fieldmd5, key) {
|
||||
var $inline = window.opener.jQuery('.browse_foreign_clicked');
|
||||
if ($inline.length != 0) {
|
||||
$inline.removeClass('browse_foreign_clicked')
|
||||
// puts new value in the previous element which is
|
||||
// a span with class curr_value
|
||||
.prev().text(key);
|
||||
self.close();
|
||||
return false;
|
||||
}
|
||||
|
||||
if (opener && opener.document && opener.document.insertForm) {
|
||||
var field = 'fields';
|
||||
|
||||
|
Reference in New Issue
Block a user