integrating changes in order to enable the double click selection/insertion in the variable picker
This commit is contained in:
@@ -31,7 +31,7 @@ leimnud.event.add(document.getElementById('search'), 'keypress', function(e) {
|
|||||||
if(key == '13')
|
if(key == '13')
|
||||||
{
|
{
|
||||||
//var ref = document.getElementById("PRO_UID").value;
|
//var ref = document.getElementById("PRO_UID").value;
|
||||||
var list = getVariableList(document.getElementById('search').value, document.getElementById("PRO_UID").value, document.getElementById('type_variables').value);
|
var list = getVariableList(document.getElementById('search').value, document.getElementById("process").value, document.getElementById('type_variables').value);
|
||||||
for (var i=0; i< list.length; i++){
|
for (var i=0; i< list.length; i++){
|
||||||
console.log(list[i].sName);
|
console.log(list[i].sName);
|
||||||
}
|
}
|
||||||
@@ -47,8 +47,8 @@ leimnud.event.add(document.getElementById('search'), 'keypress', function(e) {
|
|||||||
|
|
||||||
var generateListValues = function(){
|
var generateListValues = function(){
|
||||||
|
|
||||||
var combo = document.getElementById("_Var_Form_");
|
var combo = document.getElementById("_Var_Form_");
|
||||||
var option = document.createElement('option');
|
var option = document.createElement('option');
|
||||||
combo.options.add(option, 0);
|
combo.options.add(option, 0);
|
||||||
combo.options[0].value = "valor";
|
combo.options[0].value = "valor";
|
||||||
combo.options[0].text = "Textojjjjj";
|
combo.options[0].text = "Textojjjjj";
|
||||||
|
|||||||
@@ -27,9 +27,9 @@ $html .= '<div id="d_variables">';
|
|||||||
|
|
||||||
$html .= '<table width="90%" align="center">';
|
$html .= '<table width="90%" align="center">';
|
||||||
|
|
||||||
$html .= '<tr>';
|
$html .= '<tr>';
|
||||||
$html .= '<td colspan="3">';
|
$html .= '<td colspan="3">';
|
||||||
$html .= '<input type="hidden" id="process" value="'.$_POST['sProcess'].'">';
|
$html .= '<input type="hidden" id="process" value="'.$_POST['sProcess'].'">';
|
||||||
$html .= '</td>';
|
$html .= '</td>';
|
||||||
$html .= '</tr>';
|
$html .= '</tr>';
|
||||||
|
|
||||||
@@ -56,8 +56,7 @@ $html .= '<option value="all">All Variables</option>';
|
|||||||
$html .= '<option value="system">System Variables</option>';
|
$html .= '<option value="system">System Variables</option>';
|
||||||
$html .= '<option value="process">Process Variables</option>';
|
$html .= '<option value="process">Process Variables</option>';
|
||||||
$html .= '</select> ';
|
$html .= '</select> ';
|
||||||
$html .= '<input type="hidden" id="PRO_UID" name="PRO_UID" value="'.$_POST['sProcess'].'"/> ';
|
$html .= '<input type="hidden" id="selectedField" name="selectedField" value="'.$_POST['sFieldName'].'"/> ';
|
||||||
$html .= '<input type="hidden" id="selectedField" name="selectedField" value="'.$_POST['selectedField'].'"/> ';
|
|
||||||
$html .= '</td>';
|
$html .= '</td>';
|
||||||
|
|
||||||
$html .= '<td width="25%">';
|
$html .= '<td width="25%">';
|
||||||
|
|||||||
Reference in New Issue
Block a user