definicao de layout
This commit is contained in:
21
public/assets/js/modal-animated.js
Normal file
21
public/assets/js/modal-animated.js
Normal file
@@ -0,0 +1,21 @@
|
||||
"use strict";
|
||||
function testAnim(x) {
|
||||
$('.modal .modal-dialog').attr('class', 'modal-dialog ' + x + ' animated');
|
||||
};
|
||||
var modal_animate_custom = {
|
||||
init: function() {
|
||||
$('#myModal').on('show.bs.modal', function (e) {
|
||||
var anim = $('#entrance').val();
|
||||
testAnim(anim);
|
||||
})
|
||||
$('#myModal').on('hide.bs.modal', function (e) {
|
||||
var anim = $('#exit').val();
|
||||
testAnim(anim);
|
||||
})
|
||||
// $("a").tooltip();
|
||||
}
|
||||
};
|
||||
(function($) {
|
||||
"use strict";
|
||||
modal_animate_custom.init()
|
||||
})(jQuery);
|
||||
Reference in New Issue
Block a user