PCHD#27790: Uitbreiding factuurscherm (flexkenmerken).
svn path=/Website/trunk/; revision=19739
This commit is contained in:
@@ -461,18 +461,10 @@ function AddItem(nofocus) // als je hieronder iets aanpast controleer dan ook fi
|
||||
tr.className = (rowIndex & 1? "O " : "E ");
|
||||
tr.setAttribute("ROWKEY", -1);
|
||||
|
||||
// Create flexkenmerk button
|
||||
cell = tr.insertCell(-1);
|
||||
cell.setAttribute("class", "inlinedetails closed");
|
||||
cell.title = L("lcl_fin_regel_kenmerken");
|
||||
cell.onclick = new Function('return showInlineDetails(this, \'inlinePropertiesUrl\')');
|
||||
cell.innerHTML = '<td class="inlinedetails closed" title="' + L("lcl_fin_regel_kenmerken") + '" onclick="return showInlineDetails(this, \'inlinePropertiesUrl\')">'
|
||||
+ '<img src="../Pictures/attach.png" style="cursor: pointer;">'
|
||||
+ '</td>';
|
||||
|
||||
// Create drop button
|
||||
cell = tr.insertCell(-1);
|
||||
cell.innerHTML = "<img src='../Pictures/order_cancel.gif' OnClick='DeleteOrderLine(" + rowIndex + ")' style='cursor:pointer'>";
|
||||
cell.id = "tdfin" + rowIndex;
|
||||
|
||||
// Create description field
|
||||
cell = tr.insertCell(-1);
|
||||
@@ -531,6 +523,8 @@ function AddItem(nofocus) // als je hieronder iets aanpast controleer dan ook fi
|
||||
|
||||
if (!nofocus)
|
||||
$("#descript" + rowIndex).focus();
|
||||
|
||||
showInlineDetails($("#tdfin" + rowIndex)[0], "inlinePropertiesUrl", 2);
|
||||
}
|
||||
|
||||
// Merk op dat regel_key multifunctioneel is
|
||||
|
||||
@@ -46,7 +46,7 @@ function hideAllInlineDetails(ID)
|
||||
resizeWhenInIFrame();
|
||||
}
|
||||
|
||||
function showInlineDetails(thisTD, strfnURL)
|
||||
function showInlineDetails(thisTD, strfnURL, position)
|
||||
{
|
||||
var thisTR = thisTD.parentNode;
|
||||
var thisTRid = thisTR.id;
|
||||
@@ -65,7 +65,9 @@ function showInlineDetails(thisTD, strfnURL)
|
||||
var theCell = newRow.insertCell(1);
|
||||
theCell.innerHTML = L("lcl_shared_loading");
|
||||
theCell.colSpan=thisTR.children.length - 2;
|
||||
newRow.insertCell(1);
|
||||
if (position == null) position = 3;
|
||||
for (var i = 0; i < position - 2; i++)
|
||||
newRow.insertCell(1);
|
||||
var xurl = eval(strfnURL).call(null, thisTR);
|
||||
$.ajaxSetup({ cache: true });
|
||||
theCell.id = "tdinline";
|
||||
|
||||
Reference in New Issue
Block a user