Skip to content

Instantly share code, notes, and snippets.

View cmatheson's full-sized avatar

Cameron Matheson cmatheson

  • WorkOS
  • South Jordan, UT
View GitHub Profile
@cmatheson
cmatheson / instructurezendesk.js
Created July 26, 2012 19:40 — forked from ryankshaw/instructurezendesk.js
Instructure Zendesk Agent-only mods
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;