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/email/
|
||||||
!templates/frontOffice/
|
!templates/frontOffice/
|
||||||
!templates/pdf/
|
!templates/pdf/
|
||||||
|
|
||||||
|
#Ignore CodeKit
|
||||||
|
codekit-config.json
|
||||||
|
config.codekit
|
||||||
|
.codekit-cache
|
||||||
|
|||||||
@@ -124,7 +124,10 @@
|
|||||||
bootbox.hideAll();
|
bootbox.hideAll();
|
||||||
// Show dialog
|
// Show dialog
|
||||||
bootbox.dialog({
|
bootbox.dialog({
|
||||||
message : $("#product",data)
|
message : $("#product",data),
|
||||||
|
onEscape: function() {
|
||||||
|
bootbox.hideAll();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
@@ -149,7 +152,9 @@
|
|||||||
// Show dialog
|
// Show dialog
|
||||||
bootbox.dialog({
|
bootbox.dialog({
|
||||||
message : data,
|
message : data,
|
||||||
buttons : {}
|
onEscape: function() {
|
||||||
|
bootbox.hideAll();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user