Close the dialog box when the user presses the escape (ESC) key.
This commit is contained in:
5
.gitignore
vendored
5
.gitignore
vendored
@@ -42,3 +42,8 @@ templates/*
|
||||
!templates/email/
|
||||
!templates/frontOffice/
|
||||
!templates/pdf/
|
||||
|
||||
#Ignore CodeKit
|
||||
codekit-config.json
|
||||
config.codekit
|
||||
.codekit-cache
|
||||
|
||||
@@ -124,7 +124,10 @@
|
||||
bootbox.hideAll();
|
||||
// Show dialog
|
||||
bootbox.dialog({
|
||||
message : $("#product",data)
|
||||
message : $("#product",data),
|
||||
onEscape: function() {
|
||||
bootbox.hideAll();
|
||||
}
|
||||
});
|
||||
}
|
||||
);
|
||||
@@ -149,7 +152,9 @@
|
||||
// Show dialog
|
||||
bootbox.dialog({
|
||||
message : data,
|
||||
buttons : {}
|
||||
onEscape: function() {
|
||||
bootbox.hideAll();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user