Commit 08eee02f112cf06c44436127d629a2b9130191f5
1 parent
f13f0bd4
Exists in
master
and in
112 other branches
reset catalogUI
Showing
1 changed file
with
9 additions
and
2 deletions
Show diff stats
js/app/views/CatalogUI.js
@@ -558,7 +558,6 @@ Ext.define('amdaUI.CatalogUI', { | @@ -558,7 +558,6 @@ Ext.define('amdaUI.CatalogUI', { | ||
558 | } | 558 | } |
559 | else | 559 | else |
560 | { | 560 | { |
561 | - // warning: | ||
562 | Ext.Msg.alert('No intervals', 'Your time table is invalid, <br>you must have at least one interval'); | 561 | Ext.Msg.alert('No intervals', 'Your time table is invalid, <br>you must have at least one interval'); |
563 | } | 562 | } |
564 | } | 563 | } |
@@ -566,7 +565,15 @@ Ext.define('amdaUI.CatalogUI', { | @@ -566,7 +565,15 @@ Ext.define('amdaUI.CatalogUI', { | ||
566 | }, | 565 | }, |
567 | { | 566 | { |
568 | type: 'button', | 567 | type: 'button', |
569 | - text: 'Reset' | 568 | + text: 'Reset', |
569 | + scope : this, | ||
570 | + handler: function() | ||
571 | + { | ||
572 | +// var module = myDesktopApp.getLoadedModule(myDesktopApp.dynamicModules.catalog.id); | ||
573 | +// module.createLinkedNode(); | ||
574 | +// module.createObject(); | ||
575 | +// this.setObject(module.getLinkedNode().get('object'), true); | ||
576 | + } | ||
570 | }, | 577 | }, |
571 | { | 578 | { |
572 | type: 'button', | 579 | type: 'button', |