You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.4 KiB
41 lines
1.4 KiB
6 years ago
|
/*=========================================================================================
|
||
|
File Name: components-modal.js
|
||
|
Description: Modals are streamlined, but flexible, dialog prompts with the minimum
|
||
|
required functionality and smart defaults.
|
||
|
----------------------------------------------------------------------------------------
|
||
|
Item Name: Modern Admin - Clean Bootstrap 4 Dashboard HTML Template
|
||
|
Version: 1.0
|
||
|
Author: Pixinvent
|
||
|
Author URL: hhttp://www.themeforest.net/user/pixinvent
|
||
|
==========================================================================================*/
|
||
|
(function(window, document, $) {
|
||
|
'use strict';
|
||
|
|
||
|
// onShow event
|
||
|
$('#onshowbtn').on('click', function() {
|
||
|
$('#onshow').on('show.bs.modal', function() {
|
||
|
alert('onShow event fired.');
|
||
|
});
|
||
|
});
|
||
|
|
||
|
// onShown event
|
||
|
$('#onshownbtn').on('click', function() {
|
||
|
$('#onshown').on('shown.bs.modal', function() {
|
||
|
alert('onShown event fired.');
|
||
|
});
|
||
|
});
|
||
|
|
||
|
// onHide event
|
||
|
$('#onhidebtn').on('click', function() {
|
||
|
$('#onhide').on('hide.bs.modal', function() {
|
||
|
alert('onHide event fired.');
|
||
|
});
|
||
|
});
|
||
|
|
||
|
// onHidden event
|
||
|
$('#onhiddenbtn').on('click', function() {
|
||
|
$('#onhidden').on('hidden.bs.modal', function() {
|
||
|
alert('onHidden event fired.');
|
||
|
});
|
||
|
});
|
||
|
})(window, document, jQuery);
|