From d906f18792d5f92a32b5a03d313c5f6115a45f9a Mon Sep 17 00:00:00 2001 From: Hacene SI HADJ MOHAND <hacene.si-hadj-mohand@akka.eu> Date: Fri, 19 Jul 2019 10:15:50 +0200 Subject: [PATCH] rm_6903 --- js/app/views/CatalogUI.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/js/app/views/CatalogUI.js b/js/app/views/CatalogUI.js index d2b3282..3d50dc5 100644 --- a/js/app/views/CatalogUI.js +++ b/js/app/views/CatalogUI.js @@ -119,7 +119,7 @@ Ext.define('amdaUI.CatalogUI', { generateTT : function(){ console.log(this); if(this.fclose()){ - Ext.Msg.confirm('Generate TT', 'Current Catalog has been modified.\nDo you want to include these changes in the generated Time Table ?' , + Ext.Msg.confirm('Generate TT', 'Current Catalog has been modified.\nDo you want to save it to include these changes in the generated Time Table ?' , function (btn, text){ if (btn == 'yes'){ // mark this.closed as true before the call to close() as that will fire the beforeclose event again @@ -135,9 +135,7 @@ Ext.define('amdaUI.CatalogUI', { } }, this); - }else{ - this.createTT(this.object.get('id')); - } + } }, createTT : function(catId){ var catObj = Ext.create('amdaModel.TimeTable'); @@ -816,7 +814,7 @@ Ext.define('amdaUI.CatalogUI', { var me = this; - Ext.Msg.prompt('Define Parameters', 'Please enter parameters number:', function(btn, text){ + Ext.Msg.prompt('Create catalog', 'Enter the number of columns:', function(btn, text){ if (btn == 'ok'){ module.createLinkedNode(); module.createObject(); -- libgit2 0.21.2