Sorry I missed this issue, are you still having this problem?
I am still experiencing the issue.
Sounds like a javascript issue issue, can you open a debugger and see if you have any javascript errors.
I used IE and Firefox debugger and there was no javascript errors
hmmm, can you tell me if the mdocs-script.js file is loaded.
Yes it is, I can see the reference to it in source code view. (I did masked my domain name.)
<script type='text/javascript' src='http://#########/intranet/wp-content/plugins/memphis-documents-library//mdocs-script.js?ver=4.4.2'></script>
I want you to open the mdocs-script.js file find the function mdocs_descript_preview()
change the function to look like this:
jQuery('.description-preview' ).click(function(event) {
alert('you are in the preview function');
jQuery('.mdocs-description-preview-body').empty();
var mdocs_file_id = jQuery(this).data('mdocs-id');
var mdocs_is_admin = jQuery(this).data('is-admin');
jQuery.post(mdocs_js.ajaxurl,{action: 'myajax-submit', type: 'show-desc',mdocs_file_id: mdocs_file_id, is_admin: mdocs_is_admin},function(data) {
jQuery('.mdocs-description-preview-body').html(data);
});
});
report back with your findings.
I made the change.
I am getting the popup ‘you are in the preview function’ and once I click ok I get the modal box, but the description is missing from the box.
Now change it to this:
jQuery('.description-preview' ).click(function(event) {
jQuery('.mdocs-description-preview-body').empty();
var mdocs_file_id = jQuery(this).data('mdocs-id');
var mdocs_is_admin = jQuery(this).data('is-admin');
jQuery.post(mdocs_js.ajaxurl,{action: 'myajax-submit', type: 'show-desc',mdocs_file_id: mdocs_file_id, is_admin: mdocs_is_admin},function(data) {
alert(data);
jQuery('.mdocs-description-preview-body').html(data);
});
});
I am not getting an alert box. Just the empty modal box.
then something maybe another plugin is stopping the post from firing, try disabling all plugins.
I disabled all the plugins except Redux Framework which is required for my theme and im getting the same results.
you need to disable all plugins in order to debug this issue.
Ok. I disabled everything except Memphis Documents Library and switch to the Twenty Fifteen theme. All the links in for the Memphis docs were # so I unchecked Bootstrap and Jquery in the memphis settings.
After doing all of that the modal is still coming up blank.
Okay, so go back to your normal set up, but this time leave jQuery unchecked.