File tree Expand file tree Collapse file tree 3 files changed +18
-2
lines changed
Expand file tree Collapse file tree 3 files changed +18
-2
lines changed Original file line number Diff line number Diff line change 6767 * @private
6868 */
6969 this . _modal = $ ( "#templateModal" )
70- . on ( 'hidden.bs.modal' , this . reset . bind ( this ) ) ;
70+ . on ( 'hidden.bs.modal' , this . onModalClose . bind ( this ) ) ;
7171
7272 // Turn off all file dragging
7373 $ ( document . body ) . on ( "dragover drop" , function ( e ) {
263263 this . reset ( ) ;
264264 } ;
265265
266+ /**
267+ * Handler when the modal becomes hidden
268+ * @private
269+ * @method onModalClose
270+ */
271+ p . onModalClose = function ( )
272+ {
273+ this . reset ( ) ;
274+ this . updateModules ( ) ;
275+ } ;
276+
266277 /**
267278 * Reset the drop zone
268279 * @method reset
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module.exports = function(grunt)
1111 'clean:css' ,
1212 'less:release' ,
1313 'moduleAppTasks' ,
14+ 'clean:defaultTemplate' ,
1415 'libs' ,
1516 'copy:defaultTemplate' ,
1617 'exec:appModules' ,
Original file line number Diff line number Diff line change 11module . exports = {
2- installers : [ '<%= buildDir %>/<%= project.name %>-Setup-*.*' ]
2+ installers : [ '<%= buildDir %>/<%= project.name %>-Setup-*.*' ] ,
3+ defaultTemplate : [
4+ '<%= components %>/default/' ,
5+ '<%= distFolder %>/assets/templates/default/'
6+ ]
37} ;
You can’t perform that action at this time.
0 commit comments