Skip to content

Instantly share code, notes, and snippets.

@lethee
Created May 16, 2012 08:50
Show Gist options
  • Save lethee/2708814 to your computer and use it in GitHub Desktop.
Save lethee/2708814 to your computer and use it in GitHub Desktop.
disable me2day f... discovery view
/**
* Disable Discovery or Quick & Toggle with dblClick
*
* by http://me2day.net/ssemi
*/
function m2m_disable_discovery() {
jQuery('div.post_section').dblclick(function(){
jQuery(this).toggleClass('discovery');
}).removeClass('discovery');
}
m2m_disable_discovery();
var get_mystream_link = jQuery('#get_mystream_link');
if (get_mystream_link.attr('onclick')) {
get_mystream_link.attr('onclick', "Stream.get_more_posts({link_text: '더보기', afterOnSuccess: m2m_disable_discovery}); return false;");
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment