Skip to content

Instantly share code, notes, and snippets.

@JKring
Created April 17, 2013 01:12
Show Gist options
  • Save JKring/5401006 to your computer and use it in GitHub Desktop.
Save JKring/5401006 to your computer and use it in GitHub Desktop.
load
self.loadRev = function(){
console.log("loading rev");
console.log(self.id);
console.log(self.shownRevision().index);
$.get("/documents/load_rev",{
id:self.id,
rev:self.shownRevision().index
},
function(d){
console.dir(d);
self.shownRevision().contents([]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment