Viewing 15 replies - 1 through 15 (of 29 total)
  • Plugin Author bhaldie

    (@bhaldie)

    Sorry I missed this issue, are you still having this problem?

    Thread Starter 1msmith1

    (@1msmith1)

    I am still experiencing the issue.

    Plugin Author bhaldie

    (@bhaldie)

    Sounds like a javascript issue issue, can you open a debugger and see if you have any javascript errors.

    Thread Starter 1msmith1

    (@1msmith1)

    I used IE and Firefox debugger and there was no javascript errors

    Plugin Author bhaldie

    (@bhaldie)

    hmmm, can you tell me if the mdocs-script.js file is loaded.

    Thread Starter 1msmith1

    (@1msmith1)

    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>

    Plugin Author bhaldie

    (@bhaldie)

    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.

    Thread Starter 1msmith1

    (@1msmith1)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    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);
    	});
        });

    Thread Starter 1msmith1

    (@1msmith1)

    I am not getting an alert box. Just the empty modal box.

    Plugin Author bhaldie

    (@bhaldie)

    then something maybe another plugin is stopping the post from firing, try disabling all plugins.

    Thread Starter 1msmith1

    (@1msmith1)

    I disabled all the plugins except Redux Framework which is required for my theme and im getting the same results.

    Plugin Author bhaldie

    (@bhaldie)

    you need to disable all plugins in order to debug this issue.

    Thread Starter 1msmith1

    (@1msmith1)

    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.

    Plugin Author bhaldie

    (@bhaldie)

    Okay, so go back to your normal set up, but this time leave jQuery unchecked.

Viewing 15 replies - 1 through 15 (of 29 total)

The topic ‘Description Missing’ is closed to new replies.