Created
May 16, 2012 08:50
-
-
Save lethee/2708814 to your computer and use it in GitHub Desktop.
disable me2day f... discovery view
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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