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 67
67
* @private
68
68
*/
69
69
this . _modal = $ ( "#templateModal" )
70
- . on ( 'hidden.bs.modal' , this . reset . bind ( this ) ) ;
70
+ . on ( 'hidden.bs.modal' , this . onModalClose . bind ( this ) ) ;
71
71
72
72
// Turn off all file dragging
73
73
$ ( document . body ) . on ( "dragover drop" , function ( e ) {
263
263
this . reset ( ) ;
264
264
} ;
265
265
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
+
266
277
/**
267
278
* Reset the drop zone
268
279
* @method reset
Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ module.exports = function(grunt)
11
11
'clean:css' ,
12
12
'less:release' ,
13
13
'moduleAppTasks' ,
14
+ 'clean:defaultTemplate' ,
14
15
'libs' ,
15
16
'copy:defaultTemplate' ,
16
17
'exec:appModules' ,
Original file line number Diff line number Diff line change 1
1
module . exports = {
2
- installers : [ '<%= buildDir %>/<%= project.name %>-Setup-*.*' ]
2
+ installers : [ '<%= buildDir %>/<%= project.name %>-Setup-*.*' ] ,
3
+ defaultTemplate : [
4
+ '<%= components %>/default/' ,
5
+ '<%= distFolder %>/assets/templates/default/'
6
+ ]
3
7
} ;
You can’t perform that action at this time.
0 commit comments