[open-ils-commits] r9442 -
trunk/Open-ILS/web/conify/global/permission
svn at svn.open-ils.org
svn at svn.open-ils.org
Wed Apr 23 13:56:31 EDT 2008
Author: miker
Date: 2008-04-23 13:17:15 -0400 (Wed, 23 Apr 2008)
New Revision: 9442
Modified:
trunk/Open-ILS/web/conify/global/permission/perm_list.html
trunk/Open-ILS/web/conify/global/permission/perm_list.js
Log:
adding translation for description
Modified: trunk/Open-ILS/web/conify/global/permission/perm_list.html
===================================================================
--- trunk/Open-ILS/web/conify/global/permission/perm_list.html 2008-04-23 15:13:45 UTC (rev 9441)
+++ trunk/Open-ILS/web/conify/global/permission/perm_list.html 2008-04-23 17:17:15 UTC (rev 9442)
@@ -88,8 +88,32 @@
window.perm_grid_layout = [
{ cells : [
[
- { name : "Code", field : "code", width : "300px", editor : dojox.grid.editors.Dijit },
- { name : "Description", field : "description", width : "auto", editor : dojox.grid.editors.Editor }
+ { name : "Code", field : "code", width : "300px", editor : dojox.grid.editors.Dijit, rowSpan : "2" },
+ { name : "Description", field : "description", width : "auto", editor : dojox.grid.editors.Editor, style : "minHeight:1em;" }
+ ],
+ [
+ { name : "Translation",
+ width : "10em",
+ height : "2em",
+ get : function (row) {
+ if (!window.perm_rows) window.perm_rows = [];
+ var r = window.perm_data_model.getRow(row);
+ if (r) {
+ window.perm_rows[row] = new ccs().fromHash(window.perm_data_model.getRow(row));
+ setTimeout(
+ 'dojo.query(".perm_grid_trans_desc_' + row + '").'+
+ 'instantiate(openils.I18N.translationWidget,{field:"description",'+
+ 'targetObject:"window.perm_rows['+row+']",unique:"' + row + '"});'+
+ 'perm_grid.rowHeightChanged('+row+')',
+ 0
+ );
+ var oldnode = dojo.byId('description_translation_' + row);
+ if (oldnode) dijit.byNode(oldnode).destroyRecursive();
+ return '<span class="perm_grid_trans_desc_'+row+'"></span>';
+ }
+ return '';
+ }
+ }
]
]
}
Modified: trunk/Open-ILS/web/conify/global/permission/perm_list.js
===================================================================
--- trunk/Open-ILS/web/conify/global/permission/perm_list.js 2008-04-23 15:13:45 UTC (rev 9441)
+++ trunk/Open-ILS/web/conify/global/permission/perm_list.js 2008-04-23 17:17:15 UTC (rev 9442)
@@ -16,6 +16,7 @@
*/
dojo.require('fieldmapper.dojoData');
+dojo.require('openils.I18N');
dojo.require('dojo.parser');
dojo.require('dojo.string');
dojo.require('dojo.data.ItemFileWriteStore');
More information about the open-ils-commits
mailing list