Skip to content

Instantly share code, notes, and snippets.

@jcromartie
Created October 12, 2012 21:13
Show Gist options
  • Select an option

  • Save jcromartie/3881567 to your computer and use it in GitHub Desktop.

Select an option

Save jcromartie/3881567 to your computer and use it in GitHub Desktop.
RGView.prototype.zoom = function(percent) {
var doSuccess = function(rgView) {
return function(data) {
rgView.refreshImage();
$('#display' + rgView.index).css('zoom', "100%");
};
};
csi.relgraph.zoomPercent(this.vizuuid, percent, {
onsuccess : doSuccess(this)
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment