Support » Plugin: Memphis Documents Library » Soliloquy slider breaks with Memphis Docs

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

    (@bhaldie)

    The problem that in the site that is broken a javascript failure of mdocs is occurring:

    
    mdocs_wp — memphis-documents.min.js:1:116TypeError: jQuery('[data-toggle="tooltip"]').tooltip is not a function. (In 'jQuery('[data-toggle="tooltip"]').tooltip()', 'jQuery('[data-toggle="tooltip"]').tooltip' is undefined)
    

    jQuery loading issue. A quick fix might be to open the file memphis-documents.js and comment out line 9:

    
    jQuery('[data-toggle="tooltip"]').tooltip();
    

    Check that subsites mdocs configuration see if jQuery has been disabled.

    jQuery is indeed disabled Network-wide and for the child site.

    There is no line #9 in memphis-documents.min.js because it is minifed and there is no exact string match to:

    jQuery('[data-toggle="tooltip"]').tooltip();

    Plugin Author bhaldie

    (@bhaldie)

    you are correct, here is a minifed version with that line commented out.

    
    function mdocs_wp(){jQuery("body").addClass("memphis-documents-library"),mdocs_add_update_documents(),mdocs_toogle_description_preview(),mdocs_description_preview(),mdocs_file_preview(),mdocs_image_preview(),mdocs_ratings(),mdocs_sort_files(),mdocs_submit_rating("small"),mdocs_share_modal(),mdocs_toggle_modals(),mdocs_toggle_dropdown_menu(),mdocs_versions(),mdocs_debug_active()}function mdocs_admin(){"object"==typeof tinyMCE&&tinyMCE.init({remove_linebreaks:!1}),jQuery(document).on("focusin",function(e){e.stopImmediatePropagation()}),mdocs_modal_close(),mdocs_color_pickers(),mdocs_toogle_disable_setting("#mdocs-hide-all-files","#mdocs-hide-all-files-non-members"),mdocs_toogle_disable_setting("#mdocs-hide-all-files-non-members","#mdocs-hide-all-files"),mdocs_toogle_disable_setting("#mdocs-hide-all-posts","#mdocs-hide-all-posts-non-members"),mdocs_toogle_disable_setting("#mdocs-hide-all-posts-non-members","#mdocs-hide-all-posts"),mdocs_add_update_documents(),mdocs_description_preview(),mdocs_file_preview(),mdocs_image_preview(),mdocs_add_mime_type(),mdocs_remove_mime_type(),mdocs_restore_default_mimes(),mdocs_sort_files(),mdocs_ratings(),mdocs_share_modal(),jQuery("#mdosc-3-0-patch-btn").click(function(e){e.preventDefault();var t=Number(jQuery(this).data("num-docs"));mdocs_v3_0_patch(t)}),jQuery(".mdocs-show-social").click(function(){if(jQuery(this).hasClass("fa fa-plus-sign-alt")){jQuery(this).removeClass("fa fa-plus-sign-alt"),jQuery(this).addClass("fa fa-minus-sign-alt");var e=jQuery(this).prop("id");e=e.split("-");var t=e[e.length-1];jQuery("#mdocs-social-index-"+t).show()}else{jQuery(this).removeClass("fa fa-minus-sign-alt"),jQuery(this).addClass("icon-plus-sign-alt");var e=jQuery(this).prop("id");e=e.split("-");var t=e[e.length-1];jQuery("#mdocs-social-index-"+t).hide()}}),jQuery("#mdocs-add-cat").click(function(e){e.preventDefault()}),jQuery('input[id="mdocs-cat-remove"]').click(function(){var e=window.confirm(mdocs_js.category_delete),t=jQuery(this).prop("name");e&&(jQuery('[name="mdocs-cats['+t+'][remove]"]').prop("value",1),jQuery("#mdocs-cats").submit())}),mdocs_box_view_refresh(),mdocs_find_lost_files(),mdocs_toggle_modals(),mdocs_toggle_batch_select_all(),mdocs_activate_batch_options(),mdocs_debug_active(),mdocs_post_page_title_font_size(),mdocs_post_page_settings(),mdocs_folder_editor()}function mdocs_add_update_documents(){jQuery(".add-update-btn").click(function(){var e=jQuery(this).data("action-type"),t=jQuery(this).data("mdocs-id"),o=jQuery(this).data("current-cat"),s=(jQuery(this).data("nonce"),jQuery(this).data("is-admin"));jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:e,"mdocs-id":t,"current-cat":o,"is-admin":s},function(s){var a="Add Document",c=JSON.parse(s);null!=c.error?alert(c.error):("update-doc"==e?(jQuery("#mdocs-add-update-form").prop("action","admin.php?page=memphis-documents.php&mdocs-cat="+o),jQuery('input[name="mdocs-type"]').prop("value","mdocs-update"),jQuery('input[name="mdocs-index"]').prop("value",t),jQuery('input[name="mdocs-pname"]').prop("value",c.name),jQuery('input[name="mdocs-post-status-sys"]').prop("value",c.post_status),a=mdocs_js.update_doc+" <small>"+c.filename+"</small>",jQuery("#mdocs-current-doc").html(mdocs_js.current_file+": "+c.filename),c.name=c.name.replace(/\\/g,""),c.name=c.name.replace(/&quot;/g,""),jQuery('input[name="mdocs-name"]').prop("value",c.name),jQuery('option[value="'+c.cat+'"]').prop("selected",!0),jQuery('input[name="mdocs-version"]').prop("value",c.version),jQuery('input[name="mdocs-tags"]').prop("value",c["post-tags"]),jQuery('input[name="mdocs-last-modified"]').prop("value",c.gmdate),"on"==c.show_social?jQuery('input[name="mdocs-social"]').prop("checked",!0):jQuery('input[name="mdocs-social"]').prop("checked",!1),"on"==c.non_members?jQuery('input[name="mdocs-non-members"]').prop("checked",!0):jQuery('input[name="mdocs-non-members"]').prop("checked",!1),jQuery("#mdocs-file-status option").each(function(){c.file_status==jQuery(this).val()&&jQuery(this).prop("selected",!0)}),jQuery("#mdocs-post-status option").each(function(){c.post_status==jQuery(this).val()&&jQuery(this).prop("selected",!0)}),jQuery("#mdocs-current-owner").html('<i class="fa fa-user"></i> '+c.owner),jQuery(".mdocs-contributors-container").append('<input type="hidden" value="'+c.owner+'" name="mdocs-owner-value"/>'),mdocs_contributor_editor(c),c.desc=c.desc.replace(/\\/g,""),c.desc=c.desc.replace(/&quot;/g,""),c.desc=c.desc,"object"==typeof tinyMCE&&null!=tinyMCE.activeEditor?tinyMCE.activeEditor.setContent(c.desc):jQuery("#mdocs-desc").text(c.desc),jQuery("#mdocs-save-doc-btn").prop("value",mdocs_js.update_doc_btn),jQuery('input[name="mdocs"]').change(function(){jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"update-date"},function(e){var t=JSON.parse(e);jQuery('input[name="mdocs-last-modified"]').val(t["formated-date"])})})):(jQuery('input[name="mdocs-name"]').val(""),jQuery('option[value="'+o+'"]').prop("selected",!0),jQuery('input[name="mdocs-version"]').val("1.0"),jQuery("#mdocs-current-doc").html(""),jQuery("#mdocs-current-owner").html('<i class="fa fa-user"></i> '+jQuery('input[name="mdocs-current-user"]').val()),jQuery(".mdocs-contributors-container").append('<input type="hidden" value="'+jQuery('input[name="mdocs-current-user"]').val()+'" id="mdocs-owner-value"/>'),"object"==typeof tinyMCE&&null!=tinyMCE.activeEditor?tinyMCE.activeEditor.setContent(""):jQuery("#mdocs-desc").text(""),jQuery('input[name="mdocs-type"]').prop("value","mdocs-add"),jQuery('input[name="mdocs-last-modified"]').prop("value",c.gmdate),mdocs_contributor_editor(c),a=mdocs_js.add_doc,jQuery("#mdocs-save-doc-btn").prop("value",mdocs_js.add_doc_btn)),jQuery("#mdocs-add-update-header").html(a))})})}function mdocs_contributor_editor(e){jQuery('button[id^="mdocs-contributors["]').each(function(){jQuery(this).remove()}),jQuery('input[name^="mdocs-contributors["]').each(function(){jQuery(this).remove()}),null==e.contributors&&(e.contributors={});var t=e.contributors;for(var o in t)t.hasOwnProperty(o)&&(jQuery(".mdocs-contributors-container").append(' <button type="button" class="btn btn-success" id="mdocs-contributors['+o+']" data-index="'+o+'"><i class="fa fa-user"></i> '+e.contributors[o]+' <i class="fa fa-times mdocs-contributors-delete-btn" id="mdocs-contributors-delete[mdocs-contributors['+o+']]"></i></span>'),jQuery(".mdocs-contributors-container").append('<input type="hidden" value="'+e.contributors[o]+'" name="mdocs-contributors['+o+']"/>'));activate_contributors_delete_btn(),jQuery(".mdocs-add-contributors").focusout(function(){jQuery(this).prop("value","")}),jQuery(".mdocs-add-contributors").keyup(function(){var e=jQuery(this).val().length;if(e>1){var t=jQuery(this).parent().data("mdocs-index"),s=[];jQuery('input[name^="mdocs-contributors"], input[name^="mdocs-batch-edit['+t+']"]').each(function(){s.push(jQuery(this).val())}),jQuery(this).parent().children(".mdocs-user-search-list").removeClass("hidden"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"search-users","user-search-string":jQuery(this).val(),owner:jQuery('input[name="mdocs-owner-value"]').val(),contributors:s},function(e){jQuery(".mdocs-user-search-list").html(e),jQuery(".mdocs-search-results-roles, .mdocs-search-results-users").click(function(e){e.preventDefault();var t=jQuery(this).parent().parent().parent().children(".mdocs-contributors-container"),s=jQuery(this).parent().parent().parent().data("contributor-type");if("add-update"==s)t.append(' <button type="button" class="btn btn-success" id="mdocs-contributors['+o+']" data-index="'+o+'"><i class="fa fa-user"></i> '+jQuery(this).data("value")+' <i class="fa fa-times mdocs-contributors-delete-btn" id="mdocs-contributors-delete[mdocs-contributors['+o+']]"></i></button>'),t.append('<input type="hidden" name="mdocs-contributors['+o+']" value="'+jQuery(this).data("value")+'" />'),o++;else if("batch-edit"==s){var a=t.data("mdocs-index"),c=t.children().last().data("contributor-index");void 0==c?c=0:c+=1,t.append('<input type="hidden" name="mdocs-batch-edit['+a+"][contributors]["+c+']" value="'+jQuery(this).data("value")+'" >'),t.append('<button type="button" class="btn btn-sm btn-success" data-mdocs-index="'+a+'" data-contributor-index="'+c+'"><i class="fa fa-user"></i> '+jQuery(this).data("value")+' <i class="fa fa-times mdocs-contributors-delete-btn" ></i></button>')}jQuery(".mdocs-add-contributors").val(""),jQuery(".mdocs-user-search-list").html(""),jQuery(".mdocs-user-search-list").addClass("hidden"),activate_contributors_delete_btn()})})}else jQuery(".mdocs-user-search-list").addClass("hidden"),jQuery(".mdocs-user-search-list").html()})}function activate_contributors_delete_btn(){jQuery(".mdocs-contributors-delete-btn").click(function(){var e=jQuery(this).parent().data("index"),t=jQuery(this).parent().data("mdocs-index"),o=jQuery(this).parent().data("contributor-index");jQuery(this).parent().remove(),jQuery('input[name="mdocs-contributors['+e+']"]').remove(),jQuery('input[name="mdocs-batch-edit['+t+"][contributors]["+o+']"]').remove()})}function add_main_category(e){mdocs_add_sub_cat(e,"",0,jQuery("#the-list"),!0)}function mdocs_color_pickers(){var e=jQuery("#bg-color-mdocs-picker").prop("value"),t=jQuery("#bg-hover-color-mdocs-picker").prop("value"),o=jQuery("#bg-text-color-mdocs-picker").prop("value"),s=jQuery("#bg-text-hover-color-mdocs-picker").prop("value"),a=jQuery('input[name="mdocs-navbar-bgcolor"]').prop("value"),c=jQuery('input[name="mdocs-navbar-bordercolor"]').prop("value"),r=jQuery("#navbar-text-color-normal-mdocs-picker").prop("value"),i=jQuery("#navbar-text-color-hover-mdocs-picker").prop("value"),d={change:function(d,n){var u=jQuery(this).prop("id");"bg-color-mdocs-picker"==u?(e=n.color.toString(),jQuery(".mdocs-download-btn-config").css("background",e)):"bg-hover-color-mdocs-picker"==u&&(t=n.color.toString()),"bg-text-color-mdocs-picker"==u?(o=n.color.toString(),jQuery(".mdocs-download-btn-config").css("color",o)):"bg-text-hover-color-mdocs-picker"==u&&(s=n.color.toString()),"navbar-bg-color-mdocs-picker"==u&&(a=n.color.toString(),jQuery(".mdocs-navbar-default-config").css("background",a)),"navbar-border-color-mdocs-picker"==u&&(c=n.color.toString(),jQuery(".mdocs-navbar-default-config").css("border-color",c)),"navbar-text-color-normal-mdocs-picker"==u?(r=n.color.toString(),jQuery(".mdocs-navbar-a-config").css("color",r)):"navbar-text-color-hover-mdocs-picker"==u&&(i=n.color.toString())}};"function"==typeof jQuery(".mdocs-color-picker").wpColorPicker&&(jQuery(".mdocs-color-picker").wpColorPicker(d),jQuery('[id$="mdocs-picker"]').wpColorPicker(d)),jQuery(".mdocs-download-btn-config").hover(function(){jQuery(this).css("background",t),jQuery(this).css("color",s)},function(){jQuery(this).css("background",e),jQuery(this).css("color",o)}),jQuery(".mdocs-navbar-a-config").hover(function(){jQuery(this).css("color",i)},function(){jQuery(this).css("color",r)})}function mdocs_restore_default_mimes(){jQuery("#mdocs-restore-default-file-types").click(function(e){e.preventDefault(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"restore-mime",is_admin:!0},function(e){jQuery(".mdocs-mime-table").html(e),mdocs_remove_mime_type(),mdocs_add_mime_type()})})}function mdocs_add_mime_type(){jQuery("#mdocs-add-mime").click(function(e){e.preventDefault();var t=jQuery('input[name="mdocs-file-extension"]').val(),o=jQuery('input[name="mdocs-mime-type"]').val();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"add-mime",file_extension:t,mime_type:o,is_admin:!0},function(e){jQuery(e).insertBefore(".mdocs-mime-submit"),mdocs_remove_mime_type(),jQuery('input[name="mdocs-file-extension"]').val(""),jQuery('input[name="mdocs-mime-type"]').val("")})})}function mdocs_remove_mime_type(){jQuery(".mdocs-remove-mime").click(function(e){e.preventDefault();var t=jQuery(this).parent().parent().data("file-type");jQuery(this).parent().parent().remove(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"remove-mime",file_extension:t,is_admin:!0},function(){})})}function mdocs_add_sub_cat(e,t,o,s,a){jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"mdocs-cat-index","check-index":jQuery("#mdocs-cats").data("check-index")},function(c){var r=parseInt(c),i=r+1;jQuery("#mdocs-cats").data("cat-index",r),jQuery("#mdocs-cats").data("check-index",i);var d=parseInt(o)+1,n='class="mdocs-cats-tr"';if(d<=mdocs_js.levels){jQuery('input[name="mdocs-update-cat-index"]').val(add_button_clicks++);var u='style="padding-left: '+40*d+'px; "';0==r?r=parseInt(e)+1:r++;var m=parseInt(jQuery('input[name="mdocs-cats['+t+'][num_children]"]').val())+1,l="";if(jQuery('input[name="mdocs-cats['+t+'][num_children]"]').val(m),a&&(u=0,m=jQuery(".wp-list-table > tbody > tr").size()+1,l="",d=0,n='class="mdocs-cats-tr parent-cat"'),void 0!=jQuery('input[name="mdocs-cats['+t+'][index]"]').val())var p=jQuery('input[name="mdocs-cats['+t+'][index]"]').val();else var p=0;var r=jQuery("#mdocs-cats").data("cat-index"),y="		<tr "+n+'>		    <td  id="name" '+u+' >		       <input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][index]" value="'+r+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][parent_index]" value="'+p+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][num_children]" value="0" />			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][depth]" value="'+d+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][parent]" value="'+t+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][slug]" value="mdocs-cat-'+r+'" />			<input type="text" name="mdocs-cats[mdocs-cat-'+r+'][name]"  value="'+mdocs_js.new_category+'"  />		    </td>		    <td id="order">			<input  type="text" name="mdocs-cats[mdocs-cat-'+r+'][order]"  value="'+m+'" '+l+' />		    </td>		    <td id="remove">			    <input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][remove]" value="0"/>			    <input type="button" id="mdocs-sub-cats-remove-new-'+r+'" class="button button-primary" value="Remove"  />		    </td>		    <td id="add-cat">			<input type="button" class="mdocs-add-sub-cat button button-primary" id="mdocs-sub-cats-add-new-'+r+'" value="'+mdocs_js.add_folder+'""   />		    </td>		</tr>		';"the-list"==jQuery(s).prop("id")?jQuery(s).append(y):jQuery(y).insertAfter(jQuery(s).parent().parent()),jQuery('input[id="mdocs-sub-cats-remove-new-'+r+'"]').click(function(){jQuery('input[name="mdocs-cats['+t+'][num_children]"]').val(m-1),jQuery(this).parent().parent().remove()}),jQuery('input[id="mdocs-sub-cats-add-new-'+r+'"]').click(function(){var e=jQuery(this).prop("id").split("-");e=e[e.length-1];var t=(jQuery('input[name="mdocs-cats[mdocs-cat-'+e+'][parent]"]').val(),jQuery('input[name="mdocs-cats[mdocs-cat-'+e+'][slug]"]').val()),o=jQuery('input[name="mdocs-cats[mdocs-cat-'+e+'][depth]"]').val();mdocs_add_sub_cat(r,t,o,this)})}else alert(mdocs_js.category_support)})}function mdocs_set_onleave(){window.onbeforeunload=function(){return mdocs_js.leave_page}}function mdocs_reset_onleave(){window.onbeforeunload=null}function mdocs_download_zip(e){jQuery("#mdocs-export-container .panel-body").append('<br><div class="alert alert-warning text-center" role="alert" id="mdocs-export-cog"><i class="fa fa-cog fa-2x fa-spin"></i> '+mdocs_js.create_export_file+"</div>"),jQuery("#mdocs-export-submit").addClass("disabled"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"mdocs-export","zip-file":e},function(){jQuery("#mdocs-export-cog").html(mdocs_js.export_creation_complete_starting_download),jQuery("#mdocs-export-cog").delay(3e3).fadeOut(1e3,function(){jQuery("#mdocs-export-cog").remove(),jQuery("#mdocs-export-submit").removeClass("disabled")}),window.location.href="?mdocs-export-file="+e,jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"mdocs-export-cleanup"},function(){})})}function mdocs_download_current_version(e){window.location.href="?mdocs-file="+e}function mdocs_download_version(e,t){window.location.href="?mdocs-file-id="+e+"&mdocs-version="+t}function mdocs_delete_version(e,t,o,s){var a=window.confirm(mdocs_js.version_delete);a&&(window.location.href="admin.php?page=memphis-documents.php&mdocs-cat="+o+"&action=delete-version&version-file="+e+"&mdocs-index="+t+"&mdocs-nonce="+s)}function mdocs_delete_file(e,t,o){var s=window.confirm(mdocs_js.version_file);s&&(window.location.href="admin.php?page=memphis-documents.php&action=delete-doc&mdocs-index="+e+"&mdocs-cat="+t+"&mdocs-nonce="+o)}function mdocs_download_file(e){window.location.href="?mdocs-file="+e+"&mdocs-url=false"}function mdocs_share(e,t,o){0==toggle_share?(jQuery("#"+o+" .mdocs-share-link").remove(),jQuery("#"+o).append('<div class="mdocs-share-link"><br>'),jQuery(".mdocs-share-link").append('<div class="well well-sm"><h3><i class="fa fa-arrow-circle-o-right"></i> Download Page</h3><p>'+e+"</p></div>"),jQuery(".mdocs-share-link").append('<div class="well well-sm"><h3><i class="fa fa-download"></i> Direct Download</h3><p>'+t+"</p></div>"),jQuery(".mdocs-share-link").append("</div>"),toggle_share=!0):(jQuery("#"+o+" .mdocs-share-link").remove(),toggle_share=!1)}function mdocs_toogle_disable_setting(e,t){var o=jQuery(e).prop("checked");o?jQuery(t).prop("disabled",!0):jQuery(t).prop("disabled",!1),jQuery(e).click(function(){var e=jQuery(this).prop("checked");e?jQuery(t).prop("disabled",!0):jQuery(t).prop("disabled",!1)})}function mdocs_ratings(){jQuery(".ratings-button").click(function(){jQuery(".mdocs-ratings-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"rating",mdocs_file_id:e},function(t){jQuery(".mdocs-ratings-body").html(t),mdocs_submit_rating("large",e)})})}function mdocs_submit_rating(e,t){var o=jQuery(".mdocs-ratings-stars").data("my-rating");if("large"==e)for(e="fa-5x",index=1;6>index;++index)o>=index?jQuery("#"+index).prop("class","fa fa-star "+e+"  mdocs-gold mdocs-my-rating"):jQuery("#"+index).prop("class","fa fa-star-o "+e+" mdocs-my-rating");else e="fa-1x";jQuery(".mdocs-my-rating").click(function(){"fa-1x"==e&&(t=jQuery(".mdocs-post-header").data("mdocs-id")),o=jQuery(this).prop("id"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"rating-submit",mdocs_file_id:t,"mdocs-rating":o},function(){window.location.href=""})}),jQuery(".mdocs-my-rating").mouseover(function(){for(index=1;6>index;++index)this.id>=index?jQuery("#"+index).prop("class","fa fa-star "+e+" mdocs-gold mdocs-my-rating"):jQuery("#"+index).prop("class","fa fa-star-o "+e+" mdocs-my-rating")}),jQuery(".mdocs-rating-container-small, .mdocs-rating-container").mouseout(function(){for(o=jQuery(".mdocs-ratings-stars").data("my-rating"),index=1;6>index;++index)o>=index?jQuery("#"+index).prop("class","fa fa-star "+e+"  mdocs-gold mdocs-my-rating"):jQuery("#"+index).prop("class","fa fa-star-o "+e+" mdocs-my-rating")})}function mdocs_restore_default(){confirm(mdocs_js.restore_warning)&&jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"restore",blog_id:mdocs_js.blog_id,is_admin:!0},function(){window.location.href="admin.php?page=memphis-documents.php&mdocs-cat=mdocuments&restore-default=true"})}function mdocs_description_preview(){jQuery(".description-preview").click(function(){jQuery(".mdocs-description-preview-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"desc",mdocs_file_id:e,show_type:"desc"},function(e){jQuery(".mdocs-description-preview-body").html(e)})})}function mdocs_file_preview(){jQuery(".file-preview").click(function(){jQuery(".mdocs-file-preview-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"preview",mdocs_file_id:e,show_type:"preview"},function(e){jQuery(".mdocs-file-preview-body").html(e)})})}function mdocs_image_preview(){jQuery(".img-preview").click(function(){jQuery(".mdocs-file-preview-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"preview",mdocs_file_id:e,show_type:"preview"},function(e){jQuery(".mdocs-file-preview-body").html(e)})})}function mdocs_toogle_description_preview(){jQuery(".mdocs-nav-tab").click(function(e){e.preventDefault(),jQuery(".mdocs-nav-tab").each(function(){jQuery(this).removeClass("mdocs-nav-tab-active")}),jQuery(this).addClass("mdocs-nav-tab-active"),jQuery("#mdocs-show-container-"+t).empty();var t=jQuery(this).data("mdocs-id"),o=jQuery(this).data("mdocs-show-type");jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"show",show_type:o,mdocs_file_id:t},function(e){jQuery("#mdocs-show-container-"+t).html(e)})})}function mdocs_sort_files(){jQuery(".mdocs-sort-option").click(function(){if(0==jQuery(this).data("disable-user-sort")){var e=jQuery(this).data("permalink"),t=(jQuery(this).data("current-cat"),jQuery(this).data("sort-type")),o=jQuery(this).children(":first").prop("class");o="fa fa-chevron-down"==o?"asc":"desc",jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"sort",sort_type:t,sort_range:o},function(){window.location.href=e})}})}function mdocs_check_width(){jQuery("#mdocs-navbar").width()<600&&0==is_collapsed||jQuery("#mdocs-navbar").width()<600&&null==is_collapsed?(is_collapsed=!0,jQuery("#mdocs-nav-expand").remove(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"nav-collaspse"},function(e){jQuery("head").append(e)})):(jQuery("#mdocs-navbar").width()>600&&1==is_collapsed||jQuery("#mdocs-navbar").width()>600&&null==is_collapsed)&&(is_collapsed=!1,jQuery("#mdocs-nav-collapse").remove(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"nav-expand"},function(e){jQuery("head").append(e)}))}function mdocs_share_modal(){jQuery(".sharing-button").click(function(){jQuery(".mdocs-share-body").empty(),jQuery(".mdocs-share-body").html("<h1>"+mdocs_js.sharing+"</h1>"),jQuery(".mdocs-share-body").append('<div class="well well-sm"><h3><i class="fa fa-arrow-circle-o-right"></i> '+mdocs_js.download_page+"</h3><p>"+jQuery(this).data("permalink")+"</p></div>"),jQuery(".mdocs-share-body").append('<div class="well well-sm"><h3><i class="fa fa-download"></i> '+mdocs_js.direct_download+"</h3><p>"+jQuery(this).data("download")+"</p></div>"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"show-social","doc-index":jQuery(this).data("doc-index")},function(e){jQuery(".mdocs-share-body").append(e),!function(e,t,o){{var s,a=e.getElementsByTagName(t)[0];/^http:/.test(e.location)?"http":"https"}e.getElementById(o)||(s=e.createElement(t),s.id=o,s.src="//platform.twitter.com/widgets.js",a.parentNode.insertBefore(s,a))}(document,"script","twitter-wjs"),jQuery.getScript("http://platform.twitter.com/widgets.js"),function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//apis.google.com/js/plusone.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),window.fbAsyncInit=function(){FB.init({xfbml:!0,version:"v2.4"})},function(e,t,o){var s,a=e.getElementsByTagName(t)[0];e.getElementById(o)||(s=e.createElement(t),s.id=o,s.src="//connect.facebook.net/en_US/sdk.js",a.parentNode.insertBefore(s,a))}(document,"script","facebook-jssdk"),FB.XFBML.parse(),jQuery(".mdocs-share-body").append('<div id="fb-root"></div>');var t='<script id="holderLink" type="IN/Share" data-url="" data-counter="right"></script>';jQuery(".linkedinDetail").html(t),IN.parse()})})}function mdocs_v3_0_patch(){if("object"==typeof mdocs_js)var e=mdocs_js;else var e=mdocs_patch_js;jQuery.post(e.ajaxurl,{action:"myajax-submit",type:"mdocs-v3-0-patch"},function(t){jQuery("body").append(t),jQuery("#run-updater-3-0").click(function(){jQuery(".container-3-0").html('		<div class="btn-container-3-0">		    <h3>'+e.patch_text_3_0_1+'</h3>		    <h1><i class="fa fa-spinner fa-pulse fa-3x"></i></h1>		    <h2>'+e.patch_text_3_0_2+"</h2>		</div>		"),jQuery.post(e.ajaxurl,{action:"myajax-submit",type:"mdocs-v3-0-patch-run-updater"},function(){window.location.href=""})}),jQuery("#not-now-3-0").click(function(){jQuery.post(e.ajaxurl,{action:"myajax-submit",type:"mdocs-v3-0-patch-cancel-updater"},function(){jQuery("html, body").css("overflowY","auto"),jQuery(".bg-3-0").remove(),jQuery(".container-3-0").remove()})})})}function mdocs_find_lost_files(){jQuery("#mdocs-find-lost-file-start").click(function(){jQuery("#mdocs-find-lost-file-start").addClass("disabled"),jQuery("#mdocs-find-lost-files-results").html('<br><i class="fa fa-refresh fa-spin fa-1x fa-fw"></i>'),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"lost-file-search-start"},function(e){jQuery("#mdocs-find-lost-file-start").removeClass("disabled"),jQuery("#mdocs-find-lost-files-results").html(e),mdocs_find_lost_files_save()})})}function mdocs_find_lost_files_save(){jQuery("#mdocs-find-lost-files-save").submit(function(e){jQuery("#mdocs-find-lost-files-save-btn").addClass("disabled"),e.preventDefault();var t=jQuery(this).serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"lost-file-save","form-data":t},function(e){jQuery("#mdocs-find-lost-files-results").html(e)})})}function mdocs_box_view_refresh(){jQuery(".box-view-refresh-button").click(function(){var e=jQuery(this).data("filename"),t=jQuery(this).data("index");jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"box-view-refresh",filename:e,index:t},function(e){jQuery(".mdocs-container").append(e),jQuery("#box-view-updated").delay(3e3).fadeOut(400,function(){jQuery("#box-view-updated").remove()})})})}function mdocs_modal_close(){jQuery(".modal").on("hidden.bs.modal",function(){jQuery(".mdocs-modal-body").empty()})}function mdocs_toggle_modals(){jQuery("body").on("click.collapse-next.data-api","[data-toggle=mdocs-modal]",function(e){e.preventDefault();var t={},o=jQuery(this).data("target");jQuery(o).modal(t)})}function mdocs_toggle_dropdown_menu(){var e=mdocs_js.dropdown_toggle_fix;e&&(jQuery(".mdocs-title-href").focusout(function(){jQuery(this).next().delay(30).fadeOut(100)}),jQuery(".mdocs-title-href").click(function(e){var t=jQuery(this).data("mdocs-id");jQuery(".mdocs-title-href").each(function(){jQuery(this).data("mdocs-id")!=t&&jQuery(this).next().fadeOut(100)}),e.preventDefault(),jQuery(this).focus(),jQuery(this).next().fadeIn(100)}))}function mdocs_toggle_batch_select_all(){jQuery('input[name="mdocs-batch-select-all"]').click(function(){var e=jQuery(this).prop("checked");jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked",e)})})}function mdocs_activate_batch_options(){jQuery('input[name="mdocs-batch-checkbox"]').click(function(){var e=!1;jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&(e=!0)})})}function mdocs_batch_edit(){var e=[];jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&e.push(jQuery(this).data("id"))});var t=JSON.stringify(e);jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-edit",ids:t},function(e){jQuery(".mdocs-batch-edit-body").empty(),jQuery(".mdocs-batch-edit-body").html(e);var t={};t.contributors=null,mdocs_contributor_editor(t)})}function mdocs_batch_edit_save(){var e=jQuery("#mdocs-batch-edit-form").serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-edit-save",data:e},function(){location.reload()})}function mdocs_batch_move(){var e=[];jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&e.push(jQuery(this).data("id"))});var t=JSON.stringify(e);jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-move",ids:t},function(e){jQuery(".mdocs-batch-move-body").empty(),jQuery(".mdocs-batch-move-body").html(e)})}function mdocs_batch_move_save(){var e=jQuery("#mdocs-batch-move-form").serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-move-save",data:e},function(){location.reload()})}function mdocs_batch_delete(){var e=[];jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&e.push(jQuery(this).data("id"))});var t=JSON.stringify(e);jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-delete",ids:t},function(e){jQuery(".mdocs-batch-delete-body").empty(),jQuery(".mdocs-batch-delete-body").html(e)})}function mdocs_batch_delete_save(){var e=jQuery("#mdocs-batch-delete-form").serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-delete-save",data:e},function(){location.reload()})}function mdocs_versions(){jQuery(".versions-button").click(function(){var e=jQuery(this).data("mdocs-id");jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"versions","mdocs-id":e},function(e){jQuery(".mdocs-versions-body").html(e)})})}function mdocs_debug_active(){mdocs_js.mdocs_debug&&jQuery(".mdoc-navbar-container, .mdocs-post").prepend('<div class="alert alert-danger text-center" role="alert" >'+mdocs_js.mdocs_debug_text+"</div>")}function mdocs_post_page_title_font_size(){1==jQuery('input[name="mdocs-override-post-title-font-size"]').prop("checked")&&jQuery("#mdocs-post-title-font-size").prop("disabled",!1),jQuery('input[name="mdocs-override-post-title-font-size"]').change(function(){1==jQuery(this).prop("checked")?jQuery("#mdocs-post-title-font-size").prop("disabled",!1):jQuery("#mdocs-post-title-font-size").prop("disabled",!0)})}function mdocs_post_page_settings(){jQuery("#mdocs-show-description").change(function(){0==jQuery(this).is(":checked")?(jQuery("#mdocs-post-content-description").prop("disabled",!0),jQuery("#mdocs-post-content-description").prop("selected",!1)):jQuery("#mdocs-post-content-description").prop("disabled",!1)}),jQuery("#mdocs-show-preview").change(function(){0==jQuery(this).is(":checked")?(jQuery("#mdocs-post-content-preview").prop("disabled",!0),jQuery("#mdocs-post-content-preview").prop("selected",!1)):jQuery("#mdocs-post-content-preview").prop("disabled",!1)}),jQuery("#mdocs-show-versions").change(function(){0==jQuery(this).is(":checked")?(jQuery("#mdocs-post-content-versions").prop("disabled",!0),jQuery("#mdocs-post-content-versions").prop("selected",!1)):jQuery("#mdocs-post-content-versions").prop("disabled",!1)})}function mdocs_folder_editor(){jQuery('[data-toggle="tooltip"]').tooltip()}var toggle_share=!1,add_button_clicks=1;is_collapsed=null;
    

    I copied this and replaced the existing memphis-documents.min.js and the error persists.

    http://content.nps.k12.nj.us/ELL/wp-content/plugins/memphis-documents-library//memphis-documents.min.js?ver=4.7.2

    Can you provide me with the non-minified version of this and I’ll try that to narrow down which line of code is throwing the error that is causing this.

    Plugin Author bhaldie

    (@bhaldie)

    are you sure you copied the new js file I post earlier. Looking at the minified js I still see the line tooltip which is not present in the code I post above.

    I will post it again here. Please make sure you clear you cache:

    
    function mdocs_wp(){jQuery("body").addClass("memphis-documents-library"),mdocs_add_update_documents(),mdocs_toogle_description_preview(),mdocs_description_preview(),mdocs_file_preview(),mdocs_image_preview(),mdocs_ratings(),mdocs_sort_files(),mdocs_submit_rating("small"),mdocs_share_modal(),mdocs_toggle_modals(),mdocs_toggle_dropdown_menu(),mdocs_versions(),mdocs_debug_active()}function mdocs_admin(){"object"==typeof tinyMCE&&tinyMCE.init({remove_linebreaks:!1}),jQuery(document).on("focusin",function(e){e.stopImmediatePropagation()}),mdocs_modal_close(),mdocs_color_pickers(),mdocs_toogle_disable_setting("#mdocs-hide-all-files","#mdocs-hide-all-files-non-members"),mdocs_toogle_disable_setting("#mdocs-hide-all-files-non-members","#mdocs-hide-all-files"),mdocs_toogle_disable_setting("#mdocs-hide-all-posts","#mdocs-hide-all-posts-non-members"),mdocs_toogle_disable_setting("#mdocs-hide-all-posts-non-members","#mdocs-hide-all-posts"),mdocs_add_update_documents(),mdocs_description_preview(),mdocs_file_preview(),mdocs_image_preview(),mdocs_add_mime_type(),mdocs_remove_mime_type(),mdocs_restore_default_mimes(),mdocs_sort_files(),mdocs_ratings(),mdocs_share_modal(),jQuery("#mdosc-3-0-patch-btn").click(function(e){e.preventDefault();var t=Number(jQuery(this).data("num-docs"));mdocs_v3_0_patch(t)}),jQuery(".mdocs-show-social").click(function(){if(jQuery(this).hasClass("fa fa-plus-sign-alt")){jQuery(this).removeClass("fa fa-plus-sign-alt"),jQuery(this).addClass("fa fa-minus-sign-alt");var e=jQuery(this).prop("id");e=e.split("-");var t=e[e.length-1];jQuery("#mdocs-social-index-"+t).show()}else{jQuery(this).removeClass("fa fa-minus-sign-alt"),jQuery(this).addClass("icon-plus-sign-alt");var e=jQuery(this).prop("id");e=e.split("-");var t=e[e.length-1];jQuery("#mdocs-social-index-"+t).hide()}}),jQuery("#mdocs-add-cat").click(function(e){e.preventDefault()}),jQuery('input[id="mdocs-cat-remove"]').click(function(){var e=window.confirm(mdocs_js.category_delete),t=jQuery(this).prop("name");e&&(jQuery('[name="mdocs-cats['+t+'][remove]"]').prop("value",1),jQuery("#mdocs-cats").submit())}),mdocs_box_view_refresh(),mdocs_find_lost_files(),mdocs_toggle_modals(),mdocs_toggle_batch_select_all(),mdocs_activate_batch_options(),mdocs_debug_active(),mdocs_post_page_title_font_size(),mdocs_post_page_settings(),mdocs_folder_editor()}function mdocs_add_update_documents(){jQuery(".add-update-btn").click(function(){var e=jQuery(this).data("action-type"),t=jQuery(this).data("mdocs-id"),o=jQuery(this).data("current-cat"),s=(jQuery(this).data("nonce"),jQuery(this).data("is-admin"));jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:e,"mdocs-id":t,"current-cat":o,"is-admin":s},function(s){var a="Add Document",c=JSON.parse(s);null!=c.error?alert(c.error):("update-doc"==e?(jQuery("#mdocs-add-update-form").prop("action","admin.php?page=memphis-documents.php&mdocs-cat="+o),jQuery('input[name="mdocs-type"]').prop("value","mdocs-update"),jQuery('input[name="mdocs-index"]').prop("value",t),jQuery('input[name="mdocs-pname"]').prop("value",c.name),jQuery('input[name="mdocs-post-status-sys"]').prop("value",c.post_status),a=mdocs_js.update_doc+" <small>"+c.filename+"</small>",jQuery("#mdocs-current-doc").html(mdocs_js.current_file+": "+c.filename),c.name=c.name.replace(/\\/g,""),c.name=c.name.replace(/&quot;/g,""),jQuery('input[name="mdocs-name"]').prop("value",c.name),jQuery('option[value="'+c.cat+'"]').prop("selected",!0),jQuery('input[name="mdocs-version"]').prop("value",c.version),jQuery('input[name="mdocs-tags"]').prop("value",c["post-tags"]),jQuery('input[name="mdocs-last-modified"]').prop("value",c.gmdate),"on"==c.show_social?jQuery('input[name="mdocs-social"]').prop("checked",!0):jQuery('input[name="mdocs-social"]').prop("checked",!1),"on"==c.non_members?jQuery('input[name="mdocs-non-members"]').prop("checked",!0):jQuery('input[name="mdocs-non-members"]').prop("checked",!1),jQuery("#mdocs-file-status option").each(function(){c.file_status==jQuery(this).val()&&jQuery(this).prop("selected",!0)}),jQuery("#mdocs-post-status option").each(function(){c.post_status==jQuery(this).val()&&jQuery(this).prop("selected",!0)}),jQuery("#mdocs-current-owner").html('<i class="fa fa-user"></i> '+c.owner),jQuery(".mdocs-contributors-container").append('<input type="hidden" value="'+c.owner+'" name="mdocs-owner-value"/>'),mdocs_contributor_editor(c),c.desc=c.desc.replace(/\\/g,""),c.desc=c.desc.replace(/&quot;/g,""),c.desc=c.desc,"object"==typeof tinyMCE&&null!=tinyMCE.activeEditor?tinyMCE.activeEditor.setContent(c.desc):jQuery("#mdocs-desc").text(c.desc),jQuery("#mdocs-save-doc-btn").prop("value",mdocs_js.update_doc_btn),jQuery('input[name="mdocs"]').change(function(){jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"update-date"},function(e){var t=JSON.parse(e);jQuery('input[name="mdocs-last-modified"]').val(t["formated-date"])})})):(jQuery('input[name="mdocs-name"]').val(""),jQuery('option[value="'+o+'"]').prop("selected",!0),jQuery('input[name="mdocs-version"]').val("1.0"),jQuery("#mdocs-current-doc").html(""),jQuery("#mdocs-current-owner").html('<i class="fa fa-user"></i> '+jQuery('input[name="mdocs-current-user"]').val()),jQuery(".mdocs-contributors-container").append('<input type="hidden" value="'+jQuery('input[name="mdocs-current-user"]').val()+'" id="mdocs-owner-value"/>'),"object"==typeof tinyMCE&&null!=tinyMCE.activeEditor?tinyMCE.activeEditor.setContent(""):jQuery("#mdocs-desc").text(""),jQuery('input[name="mdocs-type"]').prop("value","mdocs-add"),jQuery('input[name="mdocs-last-modified"]').prop("value",c.gmdate),mdocs_contributor_editor(c),a=mdocs_js.add_doc,jQuery("#mdocs-save-doc-btn").prop("value",mdocs_js.add_doc_btn)),jQuery("#mdocs-add-update-header").html(a))})})}function mdocs_contributor_editor(e){jQuery('button[id^="mdocs-contributors["]').each(function(){jQuery(this).remove()}),jQuery('input[name^="mdocs-contributors["]').each(function(){jQuery(this).remove()}),null==e.contributors&&(e.contributors={});var t=e.contributors;for(var o in t)t.hasOwnProperty(o)&&(jQuery(".mdocs-contributors-container").append(' <button type="button" class="btn btn-success" id="mdocs-contributors['+o+']" data-index="'+o+'"><i class="fa fa-user"></i> '+e.contributors[o]+' <i class="fa fa-times mdocs-contributors-delete-btn" id="mdocs-contributors-delete[mdocs-contributors['+o+']]"></i></span>'),jQuery(".mdocs-contributors-container").append('<input type="hidden" value="'+e.contributors[o]+'" name="mdocs-contributors['+o+']"/>'));activate_contributors_delete_btn(),jQuery(".mdocs-add-contributors").focusout(function(){jQuery(this).prop("value","")}),jQuery(".mdocs-add-contributors").keyup(function(){var e=jQuery(this).val().length;if(e>1){var t=jQuery(this).parent().data("mdocs-index"),s=[];jQuery('input[name^="mdocs-contributors"], input[name^="mdocs-batch-edit['+t+']"]').each(function(){s.push(jQuery(this).val())}),jQuery(this).parent().children(".mdocs-user-search-list").removeClass("hidden"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"search-users","user-search-string":jQuery(this).val(),owner:jQuery('input[name="mdocs-owner-value"]').val(),contributors:s},function(e){jQuery(".mdocs-user-search-list").html(e),jQuery(".mdocs-search-results-roles, .mdocs-search-results-users").click(function(e){e.preventDefault();var t=jQuery(this).parent().parent().parent().children(".mdocs-contributors-container"),s=jQuery(this).parent().parent().parent().data("contributor-type");if("add-update"==s)t.append(' <button type="button" class="btn btn-success" id="mdocs-contributors['+o+']" data-index="'+o+'"><i class="fa fa-user"></i> '+jQuery(this).data("value")+' <i class="fa fa-times mdocs-contributors-delete-btn" id="mdocs-contributors-delete[mdocs-contributors['+o+']]"></i></button>'),t.append('<input type="hidden" name="mdocs-contributors['+o+']" value="'+jQuery(this).data("value")+'" />'),o++;else if("batch-edit"==s){var a=t.data("mdocs-index"),c=t.children().last().data("contributor-index");void 0==c?c=0:c+=1,t.append('<input type="hidden" name="mdocs-batch-edit['+a+"][contributors]["+c+']" value="'+jQuery(this).data("value")+'" >'),t.append('<button type="button" class="btn btn-sm btn-success" data-mdocs-index="'+a+'" data-contributor-index="'+c+'"><i class="fa fa-user"></i> '+jQuery(this).data("value")+' <i class="fa fa-times mdocs-contributors-delete-btn" ></i></button>')}jQuery(".mdocs-add-contributors").val(""),jQuery(".mdocs-user-search-list").html(""),jQuery(".mdocs-user-search-list").addClass("hidden"),activate_contributors_delete_btn()})})}else jQuery(".mdocs-user-search-list").addClass("hidden"),jQuery(".mdocs-user-search-list").html()})}function activate_contributors_delete_btn(){jQuery(".mdocs-contributors-delete-btn").click(function(){var e=jQuery(this).parent().data("index"),t=jQuery(this).parent().data("mdocs-index"),o=jQuery(this).parent().data("contributor-index");jQuery(this).parent().remove(),jQuery('input[name="mdocs-contributors['+e+']"]').remove(),jQuery('input[name="mdocs-batch-edit['+t+"][contributors]["+o+']"]').remove()})}function add_main_category(e){mdocs_add_sub_cat(e,"",0,jQuery("#the-list"),!0)}function mdocs_color_pickers(){var e=jQuery("#bg-color-mdocs-picker").prop("value"),t=jQuery("#bg-hover-color-mdocs-picker").prop("value"),o=jQuery("#bg-text-color-mdocs-picker").prop("value"),s=jQuery("#bg-text-hover-color-mdocs-picker").prop("value"),a=jQuery('input[name="mdocs-navbar-bgcolor"]').prop("value"),c=jQuery('input[name="mdocs-navbar-bordercolor"]').prop("value"),r=jQuery("#navbar-text-color-normal-mdocs-picker").prop("value"),i=jQuery("#navbar-text-color-hover-mdocs-picker").prop("value"),d={change:function(d,n){var u=jQuery(this).prop("id");"bg-color-mdocs-picker"==u?(e=n.color.toString(),jQuery(".mdocs-download-btn-config").css("background",e)):"bg-hover-color-mdocs-picker"==u&&(t=n.color.toString()),"bg-text-color-mdocs-picker"==u?(o=n.color.toString(),jQuery(".mdocs-download-btn-config").css("color",o)):"bg-text-hover-color-mdocs-picker"==u&&(s=n.color.toString()),"navbar-bg-color-mdocs-picker"==u&&(a=n.color.toString(),jQuery(".mdocs-navbar-default-config").css("background",a)),"navbar-border-color-mdocs-picker"==u&&(c=n.color.toString(),jQuery(".mdocs-navbar-default-config").css("border-color",c)),"navbar-text-color-normal-mdocs-picker"==u?(r=n.color.toString(),jQuery(".mdocs-navbar-a-config").css("color",r)):"navbar-text-color-hover-mdocs-picker"==u&&(i=n.color.toString())}};"function"==typeof jQuery(".mdocs-color-picker").wpColorPicker&&(jQuery(".mdocs-color-picker").wpColorPicker(d),jQuery('[id$="mdocs-picker"]').wpColorPicker(d)),jQuery(".mdocs-download-btn-config").hover(function(){jQuery(this).css("background",t),jQuery(this).css("color",s)},function(){jQuery(this).css("background",e),jQuery(this).css("color",o)}),jQuery(".mdocs-navbar-a-config").hover(function(){jQuery(this).css("color",i)},function(){jQuery(this).css("color",r)})}function mdocs_restore_default_mimes(){jQuery("#mdocs-restore-default-file-types").click(function(e){e.preventDefault(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"restore-mime",is_admin:!0},function(e){jQuery(".mdocs-mime-table").html(e),mdocs_remove_mime_type(),mdocs_add_mime_type()})})}function mdocs_add_mime_type(){jQuery("#mdocs-add-mime").click(function(e){e.preventDefault();var t=jQuery('input[name="mdocs-file-extension"]').val(),o=jQuery('input[name="mdocs-mime-type"]').val();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"add-mime",file_extension:t,mime_type:o,is_admin:!0},function(e){jQuery(e).insertBefore(".mdocs-mime-submit"),mdocs_remove_mime_type(),jQuery('input[name="mdocs-file-extension"]').val(""),jQuery('input[name="mdocs-mime-type"]').val("")})})}function mdocs_remove_mime_type(){jQuery(".mdocs-remove-mime").click(function(e){e.preventDefault();var t=jQuery(this).parent().parent().data("file-type");jQuery(this).parent().parent().remove(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"remove-mime",file_extension:t,is_admin:!0},function(){})})}function mdocs_add_sub_cat(e,t,o,s,a){jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"mdocs-cat-index","check-index":jQuery("#mdocs-cats").data("check-index")},function(c){var r=parseInt(c),i=r+1;jQuery("#mdocs-cats").data("cat-index",r),jQuery("#mdocs-cats").data("check-index",i);var d=parseInt(o)+1,n='class="mdocs-cats-tr"';if(d<=mdocs_js.levels){jQuery('input[name="mdocs-update-cat-index"]').val(add_button_clicks++);var u='style="padding-left: '+40*d+'px; "';0==r?r=parseInt(e)+1:r++;var m=parseInt(jQuery('input[name="mdocs-cats['+t+'][num_children]"]').val())+1,l="";if(jQuery('input[name="mdocs-cats['+t+'][num_children]"]').val(m),a&&(u=0,m=jQuery(".wp-list-table > tbody > tr").size()+1,l="",d=0,n='class="mdocs-cats-tr parent-cat"'),void 0!=jQuery('input[name="mdocs-cats['+t+'][index]"]').val())var p=jQuery('input[name="mdocs-cats['+t+'][index]"]').val();else var p=0;var r=jQuery("#mdocs-cats").data("cat-index"),y="		<tr "+n+'>		    <td  id="name" '+u+' >		       <input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][index]" value="'+r+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][parent_index]" value="'+p+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][num_children]" value="0" />			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][depth]" value="'+d+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][parent]" value="'+t+'"/>			<input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][slug]" value="mdocs-cat-'+r+'" />			<input type="text" name="mdocs-cats[mdocs-cat-'+r+'][name]"  value="'+mdocs_js.new_category+'"  />		    </td>		    <td id="order">			<input  type="text" name="mdocs-cats[mdocs-cat-'+r+'][order]"  value="'+m+'" '+l+' />		    </td>		    <td id="remove">			    <input type="hidden" name="mdocs-cats[mdocs-cat-'+r+'][remove]" value="0"/>			    <input type="button" id="mdocs-sub-cats-remove-new-'+r+'" class="button button-primary" value="Remove"  />		    </td>		    <td id="add-cat">			<input type="button" class="mdocs-add-sub-cat button button-primary" id="mdocs-sub-cats-add-new-'+r+'" value="'+mdocs_js.add_folder+'""   />		    </td>		</tr>		';"the-list"==jQuery(s).prop("id")?jQuery(s).append(y):jQuery(y).insertAfter(jQuery(s).parent().parent()),jQuery('input[id="mdocs-sub-cats-remove-new-'+r+'"]').click(function(){jQuery('input[name="mdocs-cats['+t+'][num_children]"]').val(m-1),jQuery(this).parent().parent().remove()}),jQuery('input[id="mdocs-sub-cats-add-new-'+r+'"]').click(function(){var e=jQuery(this).prop("id").split("-");e=e[e.length-1];var t=(jQuery('input[name="mdocs-cats[mdocs-cat-'+e+'][parent]"]').val(),jQuery('input[name="mdocs-cats[mdocs-cat-'+e+'][slug]"]').val()),o=jQuery('input[name="mdocs-cats[mdocs-cat-'+e+'][depth]"]').val();mdocs_add_sub_cat(r,t,o,this)})}else alert(mdocs_js.category_support)})}function mdocs_set_onleave(){window.onbeforeunload=function(){return mdocs_js.leave_page}}function mdocs_reset_onleave(){window.onbeforeunload=null}function mdocs_download_zip(e){jQuery("#mdocs-export-container .panel-body").append('<br><div class="alert alert-warning text-center" role="alert" id="mdocs-export-cog"><i class="fa fa-cog fa-2x fa-spin"></i> '+mdocs_js.create_export_file+"</div>"),jQuery("#mdocs-export-submit").addClass("disabled"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"mdocs-export","zip-file":e},function(){jQuery("#mdocs-export-cog").html(mdocs_js.export_creation_complete_starting_download),jQuery("#mdocs-export-cog").delay(3e3).fadeOut(1e3,function(){jQuery("#mdocs-export-cog").remove(),jQuery("#mdocs-export-submit").removeClass("disabled")}),window.location.href="?mdocs-export-file="+e,jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"mdocs-export-cleanup"},function(){})})}function mdocs_download_current_version(e){window.location.href="?mdocs-file="+e}function mdocs_download_version(e,t){window.location.href="?mdocs-file-id="+e+"&mdocs-version="+t}function mdocs_delete_version(e,t,o,s){var a=window.confirm(mdocs_js.version_delete);a&&(window.location.href="admin.php?page=memphis-documents.php&mdocs-cat="+o+"&action=delete-version&version-file="+e+"&mdocs-index="+t+"&mdocs-nonce="+s)}function mdocs_delete_file(e,t,o){var s=window.confirm(mdocs_js.version_file);s&&(window.location.href="admin.php?page=memphis-documents.php&action=delete-doc&mdocs-index="+e+"&mdocs-cat="+t+"&mdocs-nonce="+o)}function mdocs_download_file(e){window.location.href="?mdocs-file="+e+"&mdocs-url=false"}function mdocs_share(e,t,o){0==toggle_share?(jQuery("#"+o+" .mdocs-share-link").remove(),jQuery("#"+o).append('<div class="mdocs-share-link"><br>'),jQuery(".mdocs-share-link").append('<div class="well well-sm"><h3><i class="fa fa-arrow-circle-o-right"></i> Download Page</h3><p>'+e+"</p></div>"),jQuery(".mdocs-share-link").append('<div class="well well-sm"><h3><i class="fa fa-download"></i> Direct Download</h3><p>'+t+"</p></div>"),jQuery(".mdocs-share-link").append("</div>"),toggle_share=!0):(jQuery("#"+o+" .mdocs-share-link").remove(),toggle_share=!1)}function mdocs_toogle_disable_setting(e,t){var o=jQuery(e).prop("checked");o?jQuery(t).prop("disabled",!0):jQuery(t).prop("disabled",!1),jQuery(e).click(function(){var e=jQuery(this).prop("checked");e?jQuery(t).prop("disabled",!0):jQuery(t).prop("disabled",!1)})}function mdocs_ratings(){jQuery(".ratings-button").click(function(){jQuery(".mdocs-ratings-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"rating",mdocs_file_id:e},function(t){jQuery(".mdocs-ratings-body").html(t),mdocs_submit_rating("large",e)})})}function mdocs_submit_rating(e,t){var o=jQuery(".mdocs-ratings-stars").data("my-rating");if("large"==e)for(e="fa-5x",index=1;6>index;++index)o>=index?jQuery("#"+index).prop("class","fa fa-star "+e+"  mdocs-gold mdocs-my-rating"):jQuery("#"+index).prop("class","fa fa-star-o "+e+" mdocs-my-rating");else e="fa-1x";jQuery(".mdocs-my-rating").click(function(){"fa-1x"==e&&(t=jQuery(".mdocs-post-header").data("mdocs-id")),o=jQuery(this).prop("id"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"rating-submit",mdocs_file_id:t,"mdocs-rating":o},function(){window.location.href=""})}),jQuery(".mdocs-my-rating").mouseover(function(){for(index=1;6>index;++index)this.id>=index?jQuery("#"+index).prop("class","fa fa-star "+e+" mdocs-gold mdocs-my-rating"):jQuery("#"+index).prop("class","fa fa-star-o "+e+" mdocs-my-rating")}),jQuery(".mdocs-rating-container-small, .mdocs-rating-container").mouseout(function(){for(o=jQuery(".mdocs-ratings-stars").data("my-rating"),index=1;6>index;++index)o>=index?jQuery("#"+index).prop("class","fa fa-star "+e+"  mdocs-gold mdocs-my-rating"):jQuery("#"+index).prop("class","fa fa-star-o "+e+" mdocs-my-rating")})}function mdocs_restore_default(){confirm(mdocs_js.restore_warning)&&jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"restore",blog_id:mdocs_js.blog_id,is_admin:!0},function(){window.location.href="admin.php?page=memphis-documents.php&mdocs-cat=mdocuments&restore-default=true"})}function mdocs_description_preview(){jQuery(".description-preview").click(function(){jQuery(".mdocs-description-preview-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"desc",mdocs_file_id:e,show_type:"desc"},function(e){jQuery(".mdocs-description-preview-body").html(e)})})}function mdocs_file_preview(){jQuery(".file-preview").click(function(){jQuery(".mdocs-file-preview-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"preview",mdocs_file_id:e,show_type:"preview"},function(e){jQuery(".mdocs-file-preview-body").html(e)})})}function mdocs_image_preview(){jQuery(".img-preview").click(function(){jQuery(".mdocs-file-preview-body").empty();{var e=jQuery(this).data("mdocs-id");jQuery(this).data("is-admin")}jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"preview",mdocs_file_id:e,show_type:"preview"},function(e){jQuery(".mdocs-file-preview-body").html(e)})})}function mdocs_toogle_description_preview(){jQuery(".mdocs-nav-tab").click(function(e){e.preventDefault(),jQuery(".mdocs-nav-tab").each(function(){jQuery(this).removeClass("mdocs-nav-tab-active")}),jQuery(this).addClass("mdocs-nav-tab-active"),jQuery("#mdocs-show-container-"+t).empty();var t=jQuery(this).data("mdocs-id"),o=jQuery(this).data("mdocs-show-type");jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"show",show_type:o,mdocs_file_id:t},function(e){jQuery("#mdocs-show-container-"+t).html(e)})})}function mdocs_sort_files(){jQuery(".mdocs-sort-option").click(function(){if(0==jQuery(this).data("disable-user-sort")){var e=jQuery(this).data("permalink"),t=(jQuery(this).data("current-cat"),jQuery(this).data("sort-type")),o=jQuery(this).children(":first").prop("class");o="fa fa-chevron-down"==o?"asc":"desc",jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"sort",sort_type:t,sort_range:o},function(){window.location.href=e})}})}function mdocs_check_width(){jQuery("#mdocs-navbar").width()<600&&0==is_collapsed||jQuery("#mdocs-navbar").width()<600&&null==is_collapsed?(is_collapsed=!0,jQuery("#mdocs-nav-expand").remove(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"nav-collaspse"},function(e){jQuery("head").append(e)})):(jQuery("#mdocs-navbar").width()>600&&1==is_collapsed||jQuery("#mdocs-navbar").width()>600&&null==is_collapsed)&&(is_collapsed=!1,jQuery("#mdocs-nav-collapse").remove(),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"nav-expand"},function(e){jQuery("head").append(e)}))}function mdocs_share_modal(){jQuery(".sharing-button").click(function(){jQuery(".mdocs-share-body").empty(),jQuery(".mdocs-share-body").html("<h1>"+mdocs_js.sharing+"</h1>"),jQuery(".mdocs-share-body").append('<div class="well well-sm"><h3><i class="fa fa-arrow-circle-o-right"></i> '+mdocs_js.download_page+"</h3><p>"+jQuery(this).data("permalink")+"</p></div>"),jQuery(".mdocs-share-body").append('<div class="well well-sm"><h3><i class="fa fa-download"></i> '+mdocs_js.direct_download+"</h3><p>"+jQuery(this).data("download")+"</p></div>"),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"show-social","doc-index":jQuery(this).data("doc-index")},function(e){jQuery(".mdocs-share-body").append(e),!function(e,t,o){{var s,a=e.getElementsByTagName(t)[0];/^http:/.test(e.location)?"http":"https"}e.getElementById(o)||(s=e.createElement(t),s.id=o,s.src="//platform.twitter.com/widgets.js",a.parentNode.insertBefore(s,a))}(document,"script","twitter-wjs"),jQuery.getScript("http://platform.twitter.com/widgets.js"),function(){var e=document.createElement("script");e.type="text/javascript",e.async=!0,e.src="//apis.google.com/js/plusone.js";var t=document.getElementsByTagName("script")[0];t.parentNode.insertBefore(e,t)}(),window.fbAsyncInit=function(){FB.init({xfbml:!0,version:"v2.4"})},function(e,t,o){var s,a=e.getElementsByTagName(t)[0];e.getElementById(o)||(s=e.createElement(t),s.id=o,s.src="//connect.facebook.net/en_US/sdk.js",a.parentNode.insertBefore(s,a))}(document,"script","facebook-jssdk"),FB.XFBML.parse(),jQuery(".mdocs-share-body").append('<div id="fb-root"></div>');var t='<script id="holderLink" type="IN/Share" data-url="" data-counter="right"></script>';jQuery(".linkedinDetail").html(t),IN.parse()})})}function mdocs_v3_0_patch(){if("object"==typeof mdocs_js)var e=mdocs_js;else var e=mdocs_patch_js;jQuery.post(e.ajaxurl,{action:"myajax-submit",type:"mdocs-v3-0-patch"},function(t){jQuery("body").append(t),jQuery("#run-updater-3-0").click(function(){jQuery(".container-3-0").html('		<div class="btn-container-3-0">		    <h3>'+e.patch_text_3_0_1+'</h3>		    <h1><i class="fa fa-spinner fa-pulse fa-3x"></i></h1>		    <h2>'+e.patch_text_3_0_2+"</h2>		</div>		"),jQuery.post(e.ajaxurl,{action:"myajax-submit",type:"mdocs-v3-0-patch-run-updater"},function(){window.location.href=""})}),jQuery("#not-now-3-0").click(function(){jQuery.post(e.ajaxurl,{action:"myajax-submit",type:"mdocs-v3-0-patch-cancel-updater"},function(){jQuery("html, body").css("overflowY","auto"),jQuery(".bg-3-0").remove(),jQuery(".container-3-0").remove()})})})}function mdocs_find_lost_files(){jQuery("#mdocs-find-lost-file-start").click(function(){jQuery("#mdocs-find-lost-file-start").addClass("disabled"),jQuery("#mdocs-find-lost-files-results").html('<br><i class="fa fa-refresh fa-spin fa-1x fa-fw"></i>'),jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"lost-file-search-start"},function(e){jQuery("#mdocs-find-lost-file-start").removeClass("disabled"),jQuery("#mdocs-find-lost-files-results").html(e),mdocs_find_lost_files_save()})})}function mdocs_find_lost_files_save(){jQuery("#mdocs-find-lost-files-save").submit(function(e){jQuery("#mdocs-find-lost-files-save-btn").addClass("disabled"),e.preventDefault();var t=jQuery(this).serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"lost-file-save","form-data":t},function(e){jQuery("#mdocs-find-lost-files-results").html(e)})})}function mdocs_box_view_refresh(){jQuery(".box-view-refresh-button").click(function(){var e=jQuery(this).data("filename"),t=jQuery(this).data("index");jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"box-view-refresh",filename:e,index:t},function(e){jQuery(".mdocs-container").append(e),jQuery("#box-view-updated").delay(3e3).fadeOut(400,function(){jQuery("#box-view-updated").remove()})})})}function mdocs_modal_close(){jQuery(".modal").on("hidden.bs.modal",function(){jQuery(".mdocs-modal-body").empty()})}function mdocs_toggle_modals(){jQuery("body").on("click.collapse-next.data-api","[data-toggle=mdocs-modal]",function(e){e.preventDefault();var t={},o=jQuery(this).data("target");jQuery(o).modal(t)})}function mdocs_toggle_dropdown_menu(){var e=mdocs_js.dropdown_toggle_fix;e&&(jQuery(".mdocs-title-href").focusout(function(){jQuery(this).next().delay(30).fadeOut(100)}),jQuery(".mdocs-title-href").click(function(e){var t=jQuery(this).data("mdocs-id");jQuery(".mdocs-title-href").each(function(){jQuery(this).data("mdocs-id")!=t&&jQuery(this).next().fadeOut(100)}),e.preventDefault(),jQuery(this).focus(),jQuery(this).next().fadeIn(100)}))}function mdocs_toggle_batch_select_all(){jQuery('input[name="mdocs-batch-select-all"]').click(function(){var e=jQuery(this).prop("checked");jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked",e)})})}function mdocs_activate_batch_options(){jQuery('input[name="mdocs-batch-checkbox"]').click(function(){var e=!1;jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&(e=!0)})})}function mdocs_batch_edit(){var e=[];jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&e.push(jQuery(this).data("id"))});var t=JSON.stringify(e);jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-edit",ids:t},function(e){jQuery(".mdocs-batch-edit-body").empty(),jQuery(".mdocs-batch-edit-body").html(e);var t={};t.contributors=null,mdocs_contributor_editor(t)})}function mdocs_batch_edit_save(){var e=jQuery("#mdocs-batch-edit-form").serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-edit-save",data:e},function(){location.reload()})}function mdocs_batch_move(){var e=[];jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&e.push(jQuery(this).data("id"))});var t=JSON.stringify(e);jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-move",ids:t},function(e){jQuery(".mdocs-batch-move-body").empty(),jQuery(".mdocs-batch-move-body").html(e)})}function mdocs_batch_move_save(){var e=jQuery("#mdocs-batch-move-form").serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-move-save",data:e},function(){location.reload()})}function mdocs_batch_delete(){var e=[];jQuery('input[name="mdocs-batch-checkbox"]').each(function(){jQuery(this).prop("checked")&&e.push(jQuery(this).data("id"))});var t=JSON.stringify(e);jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-delete",ids:t},function(e){jQuery(".mdocs-batch-delete-body").empty(),jQuery(".mdocs-batch-delete-body").html(e)})}function mdocs_batch_delete_save(){var e=jQuery("#mdocs-batch-delete-form").serialize();jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"batch-delete-save",data:e},function(){location.reload()})}function mdocs_versions(){jQuery(".versions-button").click(function(){var e=jQuery(this).data("mdocs-id");jQuery.post(mdocs_js.ajaxurl,{action:"myajax-submit",type:"versions","mdocs-id":e},function(e){jQuery(".mdocs-versions-body").html(e)})})}function mdocs_debug_active(){mdocs_js.mdocs_debug&&jQuery(".mdoc-navbar-container, .mdocs-post").prepend('<div class="alert alert-danger text-center" role="alert" >'+mdocs_js.mdocs_debug_text+"</div>")}function mdocs_post_page_title_font_size(){1==jQuery('input[name="mdocs-override-post-title-font-size"]').prop("checked")&&jQuery("#mdocs-post-title-font-size").prop("disabled",!1),jQuery('input[name="mdocs-override-post-title-font-size"]').change(function(){1==jQuery(this).prop("checked")?jQuery("#mdocs-post-title-font-size").prop("disabled",!1):jQuery("#mdocs-post-title-font-size").prop("disabled",!0)})}function mdocs_post_page_settings(){jQuery("#mdocs-show-description").change(function(){0==jQuery(this).is(":checked")?(jQuery("#mdocs-post-content-description").prop("disabled",!0),jQuery("#mdocs-post-content-description").prop("selected",!1)):jQuery("#mdocs-post-content-description").prop("disabled",!1)}),jQuery("#mdocs-show-preview").change(function(){0==jQuery(this).is(":checked")?(jQuery("#mdocs-post-content-preview").prop("disabled",!0),jQuery("#mdocs-post-content-preview").prop("selected",!1)):jQuery("#mdocs-post-content-preview").prop("disabled",!1)}),jQuery("#mdocs-show-versions").change(function(){0==jQuery(this).is(":checked")?(jQuery("#mdocs-post-content-versions").prop("disabled",!0),jQuery("#mdocs-post-content-versions").prop("selected",!1)):jQuery("#mdocs-post-content-versions").prop("disabled",!1)})}function mdocs_folder_editor(){jQuery('[data-toggle="tooltip"]').tooltip()}var toggle_share=!1,add_button_clicks=1;is_collapsed=null;
    

    Also here is the link to the unminfied js file, it is the dev version but it will work just fine.

    https://plugins.svn.wordpress.org/memphis-documents-library/trunk/

    You’re actually calling that jQuery twice.

    jQuery('[data-toggle="tooltip"]').tooltip();

    Line 9 and line 940.

    I commented out both line 9 and lines 939-941 of the non-minified version and overwrote the minified version with it and everything is working.

    Will this be fixed in the next release?

    It’s also very puzzling to me why only one of our child sites was having this issue.

    Plugin Author bhaldie

    (@bhaldie)

    yes the second tooltip is for the dashboard only it should be loading on the regular site.

    As for why, its because the one site has jQuery Bootstrap loaded and the other doesn’t.

    • This reply was modified 9 months, 3 weeks ago by  bhaldie.
    Plugin Author bhaldie

    (@bhaldie)

    this should be fixed int version 3.6.17

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Soliloquy slider breaks with Memphis Docs’ is closed to new replies.