This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
previousjQuery = jQuery; | |
jQuery(function($){ | |
// only run in browsers that can do localStorage (not IE) and only on the tickets page | |
if ('localStorage' in window && $('body').hasClass('tickets-show')) { | |
// I want to make sure that this always runs with my version of jquery, not zendesk's | |
$.getScript('http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.js', function(){ | |
jQuery(function($){ | |
function getThisZendeskTicketFromRestApi(callback){ | |
var UrlToThisTicket = window.location.protocol + "//" + window.location.host + window.location.port + window.location.pathname; |