Skip to content

Instantly share code, notes, and snippets.

@rvega
Created January 27, 2011 01:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rvega/797925 to your computer and use it in GitHub Desktop.
Save rvega/797925 to your computer and use it in GitHub Desktop.
response: function(){
var data = this.State.Response.data.responseText;
if(typeof(data) != 'undefined'){ // TODO: This is a temporary fix, see http://getsatisfaction.com/balupton/topics/back_button_triggers_an_ajax_request_thet_should_not_happen
var fb_params = {content: data}
$.extend(true,fb_params,ajax_deeplinks.fancybox_options);
$.fancybox(fb_params);
$('#fancybox-content a.ajax').ajaxify();
}
else{
$.fancybox.close();
$.fancybox.hideActivity();
}
return true;
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment