Show More
Commit Description:
datatable now works
Commit Description:
datatable now works
References:
File last commit:
Show/Diff file:
Action:
vendor/javascript/datatables/Editor-2.0.9/js/editor.foundation.min.js
| 1 line
| 2.2 KiB
| application/javascript
| JavascriptLexer
|
r866 | !function(n){"function"==typeof define&&define.amd?define(["jquery","datatables.net-zf","datatables.net-editor"],function(e){return n(e,window,document)}):"object"==typeof exports?module.exports=function(e,t){return e=e||window,(t=t||("undefined"!=typeof window?require("jquery"):require("jquery")(e))).fn.dataTable||require("datatables.net-zf")(e,t),t.fn.dataTable||require("datatables.net-editor")(e,t),n(t,e,e.document)}:n(jQuery,window,document)}(function(e,n,t,o){"use strict";var a;e.fn.dataTable;return a=function(a,t,l,e){var r,n=a.fn.dataTable,d=(n.Editor.defaults.display="foundation",a.extend(!0,a.fn.dataTable.Editor.classes,{field:{wrapper:"DTE_Field row",label:"small-4 columns inline",input:"small-8 columns",error:"error",multiValue:"panel radius multi-value",multiInfo:"small",multiRestore:"panel radius multi-restore","msg-labelInfo":"label secondary","msg-info":"label secondary","msg-message":"label secondary","msg-error":"label alert"},form:{button:"button small",buttonInternal:"button small"}}),!1);const i={content:a('<div class="reveal reveal-modal DTED" data-reveal></div>'),close:a('<button class="close close-button">×</div>')};return n.Editor.display.foundation=a.extend(!0,{},n.Editor.models.displayController,{init:function(e){return r=r||new t.Foundation.Reveal(i.content,{closeOnClick:!1}),n.Editor.display.foundation},open:function(t,e,n){var o=i.content;o.children().detach(),o.append(e),o.prepend(i.close),i.close.attr("title",t.i18n.close).off("click.dte-zf").on("click.dte-zf",function(){t.close("icon")}),a(l).off("click.dte-zf").on("click.dte-zf","div.reveal-modal-bg, div.reveal-overlay",function(e){a(e.target).closest(i.content).length||t.background()}),d?n&&n():(d=!0,a(i.content).one("open.zf.reveal",function(){n&&n()}),r.open())},close:function(e,t){d&&(r.close(),d=!1),t&&t()},node:function(e){return i.content[0]}}),n.Editor},"function"==typeof define&&define.amd?define(["jquery","datatables.net-zf","datatables.net-editor"],function(e){return a(e,n,t)}):"object"==typeof exports?module.exports=function(e,t){return e=e||n,(t=t&&t.fn.dataTable?t:require("datatables.net-zf")(e,t).$).fn.dataTable.Editor||require("datatables.net-editor")(e,t),a(t,e,e.document)}:a(jQuery,n,t),Editor}); |