Commit a976c1ae authored by KR Moorhouse's avatar KR Moorhouse

Added destory method to the modal library.

parent 6c3bb7ec
......@@ -24,6 +24,7 @@ function NinjaModal ( data ) {
this.settings = {
width: ( 'undefined' != typeof data.width ? data.width : 400 ),
class: ( 'undefined' != typeof data.class ? data.class : 'dashboard-modal' ),
closeButton: false,
closeOnClick: ( 'undefined' != typeof data.closeOnClick ? data.closeOnClick : 'body' ),
closeOnEsc: ( 'undefined' != typeof data.closeOnEsc ? data.closeOnEsc : true )
}
......@@ -55,6 +56,14 @@ function NinjaModal ( data ) {
}
/**
* Function to destory the modal.
*/
NinjaModal.prototype.destroy = function () {
this.popup.destroy();
}
/**
* Function to increment the progress bar.
*
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment