PATH:
home
/
letacommog
/
seneve10
/
wp-content
/
plugins
/
wpdiscuz
/
assets
/
js
jQuery(document).ready(function ($) { $(document).delegate('#wmuSelectMimes', 'click', function (e) { $('.wpd-mu-mimes input[type="checkbox"]').each(function (i, v) { $(this).prop('checked', true); }); }); $(document).delegate('#wmuUnselectMimes', 'click', function (e) { $('.wpd-mu-mimes input[type="checkbox"]').each(function (i, v) { $(this).prop('checked', false); }); }); $(document).delegate('#wmuInvertMimes', 'click', function (e) { $('.wpd-mu-mimes input[type="checkbox"]').each(function (i, v) { $(this).prop('checked', !$(this).prop('checked')); }); }); $(document).delegate('.wmu-attachment-delete', 'click', function (e) { if (confirm(wpdiscuzMUJsObj.wmuMsgConfirmAttachmentDelete)) { var data = new FormData(); var clicked = $(this); var attachmentId = clicked.data('wmu-attachment'); data.append('action', 'wmuDeleteAttachment'); data.append('attachmentId', attachmentId); var ajax = wmuGetAjaxObj(data); ajax.done(function (r) { if (r.success) { $('.wmu-attachment-' + attachmentId).remove(); } else { if (r.data.error) { alert(r.data.error); } } }); } else { console.log('canceled'); } }); $(document).delegate('.wmu-image-dimension', 'change', function () { var parent = $(this).parents('.wpd-opt-row'); var wmuSingleImageW = $('.wmu-image-width', parent); var wmuSingleImageH = $('.wmu-image-height', parent); var wmuImageW = Math.abs(wmuSingleImageW.val()); var wmuImageH = Math.abs(wmuSingleImageH.val()); if ($(this).hasClass('wmu-image-width')) { if (!isNaN(wmuImageW)) { wmuImageH = "auto"; wmuSingleImageH.val("auto"); } else if (!isNaN(wmuImageW)) { wmuSingleImageH.val("auto"); } } else { if (!isNaN(wmuImageH)) { wmuImageW = "auto"; wmuSingleImageW.val("auto"); } else if (!isNaN(wmuImageW)) { wmuSingleImageH.val("auto"); } } }); $(document).delegate('.wmu-image-dimension', 'keyup', function () { var value = $(this).val(); $(this).val(value.replace('-', '')); }); $(".wmu-lightbox").colorbox({ maxHeight: "95%", maxWidth: "95%", rel: "wmu-lightbox", fixed: true }); function wmuGetAjaxObj(data) { return $.ajax({ type: 'POST', url: ajaxurl, data: data, contentType: false, processData: false, }); } });
[+]
..
[-] wpdiscuz-deactivation.js
[edit]
[-] wpdiscuz-social.min.js
[edit]
[-] wpdiscuz-admin-menu-item.js
[edit]
[-] wpdiscuz-shortcode-gutenberg.js
[edit]
[-] wpd-editor.min.js
[edit]
[-] wpdiscuz-social.js
[edit]
[-] wpdiscuz.js
[edit]
[-] wpd-editor.js
[edit]
[-] wpdiscuz-shortcode-tinymce.js
[edit]
[-] wpdiscuz-mu-frontend.js
[edit]
[-] wpdiscuz-notes.js
[edit]
[-] wpdiscuz-mu-frontend.min.js
[edit]
[-] wpdiscuz.min.js
[edit]
[-] wpdiscuz-custom-form.js
[edit]
[-] wpdiscuz-combo.min.js
[edit]
[-] index.html
[edit]
[-] wpdiscuz-user-content.js
[edit]
[-] wpdiscuz-mu-backend.js
[edit]
[-] wpdiscuz-combo-no_quill.min.js
[edit]
[-] wpdiscuz-options.js
[edit]
[-] wpdiscuz-user-content.min.js
[edit]