Modal.js 426 Bytes
Newer Older
Sudhir Kumar's avatar
Sudhir Kumar committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
'use strict';

exports.modalShow = function(name) {
    return function(){
        var myModal = document.getElementById(name);
        var myModalInstance = new Modal(myModal);
        myModalInstance.show();
    };
};

exports.modalHide = function(name){
    return function() {
        var myModal = document.getElementById(name);
        var myModalInstance = new Modal(myModal);
        myModalInstance.hide();
    };
};