Openbravo Issue Tracking System - Openbravo ERP
View Issue Details
0003376Openbravo ERPE. Translationpublic2007-08-09 15:432008-12-17 11:09
dbaz 
rmorley 
normalminoralways
closedfixed 
5
 
 
No
Core
No
0003376: When you double-click an item on the Tree Edition Window
When you double-click an item on the Tree Edition Window the pop-up window which contains the tree closes.

It should remain opened because if you want to click then other item you have to re-open it the tree edition window and find the item.
No tags attached.
Issue History
2008-12-17 11:09pjuvaraAssigned Todbaz => rmorley

Notes
(0006965)
user71   
2005-06-01 00:00   
(edited on: 2008-06-12 09:44)
This bug was originally reported in SourceForge bug tracker and then migrated to Mantis.

You can see the original bug report in:
https://sourceforge.net/support/tracker.php?aid=1770817 [^]
(0003903)
dbaz   
2007-08-09 15:45   
(edited on: 2008-06-12 09:26)
Logged In: YES
user_id=1500873
Originator: YES

Changes that I have made in utils.js and Toolbar.java:

utils.js
--------

Before:

function openServletNewWindow(Command, depurar, url, _name, processId, checkChanges, height, width, resizable, hasStatus) {
  if (height==null) height = 350;
  if (width==null) width = 500;
  var parameters = new Array();
  parameters = addArrayValue(parameters, "scrollbars", "1");
  parameters = addArrayValue(parameters, "debug", depurar, false);
  if (processId!=null && processId!="") parameters = addArrayValue(parameters, "inpProcessId", processId, true);
  if (Command!=null && Command!="") parameters = addArrayValue(parameters, "Command", Command, false);
  return openPopUp(url, _name, height, width, null, null, checkChanges, null, true, true, parameters);
}

After:

function openServletNewWindow(Command, depurar, url, _name, processId, checkChanges, height, width, resizable, hasStatus) {
  openServletNewWindow(Command, depurar, url, _name, processId, checkChanges, height, width, resizable, hasStatus, true)
}

function openServletNewWindow(Command, depurar, url, _name, processId, checkChanges, height, width, resizable, hasStatus, closeControl) {
  if (height==null) height = 350;
  if (width==null) width = 500;
  var parameters = new Array();
  parameters = addArrayValue(parameters, "scrollbars", "1");
  parameters = addArrayValue(parameters, "debug", depurar, false);
  if (processId!=null && processId!="") parameters = addArrayValue(parameters, "inpProcessId", processId, true);
  if (Command!=null && Command!="") parameters = addArrayValue(parameters, "Command", Command, false);
  return openPopUp(url, _name, height, width, null, null, checkChanges, null, true, closeControl, parameters);
}

Toolbar.java
------------

Before:

} else if (name.equals("TREE")) {
return "openServletNewWindow('DEFAULT', false, '../utility/WindowTree.html', 'TREE', null, null,625, 750, true);";

After:

} else if (name.equals("TREE")) {
return "openServletNewWindow('DEFAULT', false, '../utility/WindowTree.html', 'TREE', null, null,625, 750, true, false);"
(0003904)
dbaz   
2007-08-13 22:40   
(edited on: 2008-06-12 09:26)
Logged In: YES
user_id=1500873
Originator: YES

I introduce more changes.

Changes that I have made in utils.js and Toolbar.java:

utils.js
--------

Before:

function openServletNewWindow(Command, depurar, url, _name, processId,
checkChanges, height, width, resizable, hasStatus) {
  if (height==null) height = 350;
  if (width==null) width = 500;
  var parameters = new Array();
  parameters = addArrayValue(parameters, "scrollbars", "1");
  parameters = addArrayValue(parameters, "debug", depurar, false);
  if (processId!=null && processId!="") parameters =
addArrayValue(parameters, "inpProcessId", processId, true);
  if (Command!=null && Command!="") parameters = addArrayValue(parameters,
"Command", Command, false);
  return openPopUp(url, _name, height, width, null, null, checkChanges,
null, true, true, parameters);
}

After:

function openServletNewWindow(Command, depurar, url, _name, processId,
checkChanges, height, width, resizable, hasStatus, closeControl) {
  if (height==null) height = 350;
  if (width==null) width = 500;
  if (closeControl==null) closeControl = true;
  var parameters = new Array();
  parameters = addArrayValue(parameters, "scrollbars", "1");
  parameters = addArrayValue(parameters, "debug", depurar, false);
  if (processId!=null && processId!="") parameters =
addArrayValue(parameters, "inpProcessId", processId, true);
  if (Command!=null && Command!="") parameters = addArrayValue(parameters,
"Command", Command, false);
  return openPopUp(url, _name, height, width, null, null, checkChanges,
null, true, closeControl, parameters);
}

Toolbar.java
------------

Before:

} else if (name.equals("TREE")) {
return "openServletNewWindow('DEFAULT', false,
'../utility/WindowTree.html', 'TREE', null, null,625, 750, true);";

After:

} else if (name.equals("TREE")) {
return "openServletNewWindow('DEFAULT', false,
'../utility/WindowTree.html', 'TREE', null, null,625, 750, true, false, false);"