Commit 07e4ac1176f92925c9768c5e24329f4dddf212ca

Authored by Erdogan Furkan
1 parent ae2e30bd

IHM part allowing drag/drop for creation of a derived parameter

Showing 1 changed file with 11 additions and 3 deletions   Show diff stats
js/app/views/ParameterUI.js
... ... @@ -311,7 +311,9 @@ Ext.define('amdaUI.ParameterUI',
311 311 (data.records[0].get('nodeType') == 'specialParam') ||
312 312 (data.records[0].get('nodeType') == 'myDataParam') ||
313 313 (data.records[0].get('nodeType') == 'timeTable') ||
314   - (data.records[0].get('nodeType') == 'catalog') |
  314 + (data.records[0].get('nodeType') == 'catalog') ||
  315 + (data.records[0].get('nodeType') == 'sharedtimeTable') ||
  316 + (data.records[0].get('nodeType') == 'sharedcatalog') ||
315 317 (data.records[0].get('nodeType') == 'alias')) &&
316 318 (data.records[0].isLeaf() || data.records[0].get('isParameter')) &&
317 319 !(data.records[0].data.disable)) {
... ... @@ -362,10 +364,16 @@ Ext.define('amdaUI.ParameterUI',
362 364 nameToSent = data.records[0].get('id');
363 365 break;
364 366 case 'timeTable':
365   - nameToSent = data.records[0].get('text');
  367 + nameToSent = "tt_"+data.records[0].get('text');
366 368 break;
367 369 case 'catalog':
368   - nameToSent = data.records[0].get('text');
  370 + nameToSent = "cat_"+data.records[0].get('text');
  371 + break;
  372 + case 'sharedtimeTable':
  373 + nameToSent = "sharedtimeTable"+data.records[0].get('text');
  374 + break;
  375 + case 'sharedcatalog':
  376 + nameToSent = "sharedcatalog_"+data.records[0].get('text');
369 377 break;
370 378 case 'myDataParam':
371 379 var name = data.records[0].get('text');
... ...