From: <df...@us...> - 2012-05-28 08:34:21
|
Revision: 4053 http://openutils.svn.sourceforge.net/openutils/?rev=4053&view=rev Author: dfghi Date: 2012-05-28 08:34:10 +0000 (Mon, 28 May 2012) Log Message: ----------- CONTROLS-38 "Paste form excel" and "clear all" now can be disabled. Modified Paths: -------------- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl Modified: magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl =================================================================== --- magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2012-05-25 16:24:35 UTC (rev 4052) +++ magnoliamodules/trunk/openutils-mgnlcontrols/src/main/resources/dialogs/grid.ftl 2012-05-28 08:34:10 UTC (rev 4053) @@ -196,6 +196,8 @@ var rows = hidden.value.split(/\r?\n/); [#assign addRowsEnabled = (configuration['addRowsEnabled']!false)?string == 'true'] + [#assign pasteFromExcelEnabled = (configuration['pasteFromExcelEnabled']!true)?string == 'true'] + [#assign clearAllEnabled = (configuration['clearAllEnabled']!true)?string == 'true'] [#assign cfgRows = configuration.rows!10] [#if (addRowsEnabled)] var numOfRows= Math.max(${cfgRows}, rows.length); @@ -271,7 +273,8 @@ } } } - } + }, + disabled: ${(!clearAllEnabled)?string} }, { text: 'Paste from spreadsheet', tooltip: 'Paste from spreadsheet', @@ -279,7 +282,8 @@ iconCls: 'button-paste', handler: function() { mgnlOpenWindow('/.resources/controls/clipboard.html?name=${name}&expand=${addRowsEnabled?string}', 320, 200); - } + }, + disabled: ${(!pasteFromExcelEnabled)?string} }, { text: '', tooltip: 'Move row up', This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |