META-INF.resources.bower_components.datatables.net-responsive-bs.js.responsive.bootstrap.min.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of jwebmp-data-tables Show documentation
Show all versions of jwebmp-data-tables Show documentation
The JWebSwing implementation for Data Tables
(function(factory){if(typeof define==="function"&&define.amd){define(["jquery","datatables.net-bs","datatables.net-responsive"],function($){return factory($,window,document)})}else if(typeof exports==="object"){module.exports=function(root,$){if(!root){root=window}if(!$||!$.fn.dataTable){$=require("datatables.net-bs")(root,$).$}if(!$.fn.dataTable.Responsive){require("datatables.net-responsive")(root,$)}return factory($,root,root.document)}}else{factory(jQuery,window,document)}})(function($,window,document,undefined){"use strict";var DataTable=$.fn.dataTable;var _display=DataTable.Responsive.display;var _original=_display.modal;var _modal=$(''+''+'"+" "+"");_display.modal=function(options){return function(row,update,render){if(!$.fn.modal){_original(row,update,render)}else{if(!update){if(options&&options.header){var header=_modal.find("div.modal-header");var button=header.find("button").detach();header.empty().append(''+options.header(row)+"
").prepend(button)}_modal.find("div.modal-body").empty().append(render());_modal.appendTo("body").modal()}}}};return DataTable.Responsive});
© 2015 - 2025 Weber Informatics LLC | Privacy Policy