nl_tokens: / * ----- Modal functions -----
pl_tokens: function createModal ( id , title , body , footer ) { var $modalHeaderButton = $ ( '<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>' ) ; var $modalHeaderTitle = $ ( '<h4 class="modal-title" id="' + id + '_modal_title">' + title + '</h4>' ) ; var $modalHeader = $ ( '<div class="modal-header"></div>' ) ; $modalHeader . <mask> ( $modalHeaderButton ) ; $modalHeader . append ( $modalHeaderTitle ) ; var $modalBody = $ ( '<div class="modal-body" id="' + id + '_modal_body">' + body + '</div>' ) ; var $modalFooter = $ ( '<div class="modal-footer" id="' + id + '_modal_footer"></div>' ) ; if ( typeof ( footer ) !== 'undefined' ) { var $modalFooterAddOn = $ ( '<div>' + footer + '</div>' ) ; $modalFooter . append ( $modalFooterAddOn ) ; } var $modalContent = $ ( '<div class="modal-content"></div>' ) ; $modalContent . append ( $modalHeader ) ; $modalContent . append ( $modalBody ) ; $modalContent . append ( $modalFooter ) ; var $modalDialog = $ ( '<div class="modal-dialog"></div>' ) ; $modalDialog . append ( $modalContent ) ; var $modalFade = $ ( '<div class="modal fade" id="' + id + '_modal" tabindex="-1" role="dialog" aria-labelledby="' + id + '_modal_title" aria-hidden="true"></div>' ) ; $modalFade . append ( $modalDialog ) ; $modalFade . data ( 'dateId' , id ) ; $modalFade . attr ( "dateId" , id ) ; return $modalFade ; }