0byt3m1n1
Path:
/
var
/
www
/
clients
/
client38
/
web37
/
web
/
wp-content
/
plugins
/
tablepress
/
admin
/
js
/
[
Home
]
File: import.min.js
jQuery(function(a){"use strict";var o="csv";a("#row-import-type").on("change","input",function(){var e=a(this).val();a("#tables-import-existing-table").prop("disabled","replace"!==e&&"append"!==e||"zip"===o)}).find("input:checked").trigger("change"),a("#row-import-source").on("change","input",function(){a("#row-import-source-file-upload, #row-import-source-url, #row-import-source-server, #row-import-source-form-field").hide(),a("#row-import-source-"+a(this).val()).show()}).find("input:checked").trigger("change"),a("#tables-import-file-upload, #tables-import-url, #tables-import-server").on("change",function(e){var t=a(this).val(),i=a("#row-import-type").find("input:checked").val(),r=t;"tables-import-url"===e.target.id&&(o="html"),e=(r=-1!==(e=t.lastIndexOf("\\"))||-1!==(e=t.lastIndexOf("/"))?t.substr(e+1):r).lastIndexOf("."),"xlsm"===(o="htm"===(o=-1!==e?r.substr(e+1).toLowerCase():o)?"html":o)&&(o="xlsx"),a("#tables-import-existing-table").prop("disabled","replace"!==i&&"append"!==i||"zip"===o),"zip"!==o&&a("#tables-import-format").val(o)}),a("#tablepress-page").find("form").on("submit.tablepress",function(){var e=a("#row-import-source").find("input:checked").val(),t=a("#tables-import-"+e).get(0),i=!0,e=a("#row-import-type").find("input:checked").val();if(t.defaultValue===t.value&&(a(t).addClass("invalid").one("change",function(){a(this).removeClass("invalid")}).trigger("focus").trigger("select"),i=!1),"replace"!==e&&"append"!==e||"zip"===o||""===a("#tables-import-existing-table").val()&&(a("#row-import-type").one("change","input",function(){a("#tables-import-existing-table").removeClass("invalid")}),a("#tables-import-existing-table").addClass("invalid").one("change",function(){a(this).removeClass("invalid")}).trigger("focus").trigger("select"),i=!1),!i)return!1})});