Sha256: 50ad73dd4efe7aa4f55b02c811054d9dfca3d6b072d470d066adde5376a0aac8
Contents?: true
Size: 897 Bytes
Versions: 1
Compression:
Stored size: 897 Bytes
Contents
var Gisted = (function($, undefined) { var gist = function(gist_id) { var gistxhr = $.getJSON('/' + gist_id + '/content') .done(function(data, textStatus, xhr) { }) .fail(function(xhr, status, error) { if (xhr.status == 404) { apologize("No Content Found"); } else { apologize("Unable to Fetch Gist"); } }) .always(function() { $("#description").removeClass("loading"); $(".content>footer").fadeIn(); }); }; var apologize = function(errorText) { $("#description").text(errorText); var apology = $('<p>').attr('class', 'apology').text("Quite flummoxed. Terribly sorry."); $('#gistbody').append(apology); }; return { gist: gist }; })(jQuery);
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
code_sync-0.6.7 | lib/assets/javascripts/vendor/gisted.js |