From 754df8a9a48666e5114e1bd399c6f8b25365f821 Mon Sep 17 00:00:00 2001 From: miker Date: Fri, 18 Apr 2008 05:15:51 +0000 Subject: [PATCH] put the translation widget into the status grid git-svn-id: svn://svn.open-ils.org/ILS/trunk@9377 dcc99617-32d9-48b4-a31d-7c20da2025e4 --- .../web/conify/global/config/copy_status.html | 28 ++++++++++++++++--- 1 file changed, 24 insertions(+), 4 deletions(-) diff --git a/Open-ILS/web/conify/global/config/copy_status.html b/Open-ILS/web/conify/global/config/copy_status.html index 90e3b2fd5c..3efa3c2105 100644 --- a/Open-ILS/web/conify/global/config/copy_status.html +++ b/Open-ILS/web/conify/global/config/copy_status.html @@ -50,11 +50,9 @@ - - - - + + @@ -180,6 +178,28 @@ width : "auto", editor : dojox.grid.editors.Dijit }, + { name : "Translation", + width : "10em", + height : "2em", + get : function (row) { + if (!window.status_rows) window.status_rows = []; + var r = window.status_data_model.getRow(row); + if (r) { + window.status_rows[row] = new ccs().fromHash(window.status_data_model.getRow(row)); + setTimeout( + 'dojo.query(".status_grid_trans_cell_' + row + '").'+ + 'instantiate(openils.I18N.translationWidget,{field:"name",'+ + 'targetObject:"window.status_rows['+row+']",unique:"' + row + '"});'+ + 'status_grid.rowHeightChanged('+row+')', + 0 + ); + var oldnode = dojo.byId('name_translation_' + row); + if (oldnode) dijit.byNode(oldnode).destroyRecursive(); + return ''; + } + return ''; + } + }, { name : "Holdable", field : "holdable", editor : dojox.grid.editors.bool, -- 2.43.2