Skip to content

Commit 13c2478

Browse files
committed
Minor change to automatically close import student dialog. Mainly trying to get a pull request working.
1 parent 192c919 commit 13c2478

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

htdocs/js/apps/UserList/userlist.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -293,6 +293,7 @@ $(function(){
293293
"click button#add_more_button": "addStudent"
294294
},
295295
openDialog: function () { this.$el.dialog("open");},
296+
closeDialog: function () {this.$el.dialog("close");},
296297
template: _.template($("#add_student_man_dialog_content").html()),
297298
render: function(){
298299
var self = this;
@@ -305,7 +306,8 @@ $(function(){
305306
_(this.users.models).each(function(user){
306307
App.users.add(user);
307308
console.log("Adding the following student: " + JSON.stringify(user))
308-
});
309+
});
310+
this.closeDialog();
309311

310312
},
311313
appendRow: function(user){

0 commit comments

Comments
 (0)