So I have my document libraries set up with an extra button using the following jQuery script:
_spBodyOnLoadFunctionNames.push("ButtonFunc");
function ButtonFunc() {
$('.ms-qcb-leftzone').append('<li class="ms-qcb-item"><a href="http://www.google.com">All Docs</a></li>');
}
As you can see the button is just a link to google. How can I set the button to be a link to a specific view of the document library?
For example, if I have a document library and I click on this button I added, I want the link to take you into the document library and be able to specify a view. Since the jQuery runs on all of the pages in my site (i put a scriptlink to the Jquery code in my master) I want it to work for each document library without having to put in a specific URL.