[FIX] :After switched to a new blog post with the bottom cover,can't select text to tweet it.
bzr revid: aja@tinyerp.com-20140217091423-hzfa2icolpvcsb04
This commit is contained in:
parent
3993c71dac
commit
f11ebbc784
|
@ -3,7 +3,14 @@
|
|||
var option = $.extend($.fn.share.defaults,options);
|
||||
$.extend($.fn.share,{
|
||||
init : function(shareable) {
|
||||
var self = this;
|
||||
$.fn.share.defaults.shareable = shareable;
|
||||
$.fn.share.defaults.shareable.on('mouseup',function(){
|
||||
self.popOver();
|
||||
});
|
||||
$.fn.share.defaults.shareable.on('mousedown',function(){
|
||||
self.destroy();
|
||||
});
|
||||
},
|
||||
getContent : function() {
|
||||
var current_url = window.location.href
|
||||
|
@ -53,13 +60,3 @@
|
|||
};
|
||||
|
||||
}());
|
||||
|
||||
$(document).ready(function(){
|
||||
$("p").share();
|
||||
$.fn.share.defaults.shareable.on('mouseup',function(){
|
||||
$.fn.share.popOver();
|
||||
});
|
||||
$.fn.share.defaults.shareable.on('mousedown',function(){
|
||||
$.fn.share.destroy();
|
||||
});
|
||||
});
|
||||
|
|
|
@ -2,6 +2,7 @@ $(document).ready(function() {
|
|||
$("#blog_content p").inlineDisqussions({'document_user': $('#is_document_user').length}); //Allow inline comments on blog post
|
||||
$('.cover_footer').on('click',page_transist);
|
||||
$('a[href^="#blog_content"]').on('click', animate);
|
||||
$("p").share();
|
||||
function page_transist(event) {
|
||||
event.preventDefault();
|
||||
var translationValue = $('.cover_footer').get(0).getBoundingClientRect().top;
|
||||
|
@ -34,6 +35,7 @@ $(document).ready(function() {
|
|||
$(document).find('.cover_footer').on('click',page_transist);
|
||||
$(document).find('a[href^="#blog_content"]').on('click', animate);
|
||||
$(document).find("#blog_content p").inlineDisqussions({'document_user': $('#is_document_user').length});
|
||||
$("p").share();
|
||||
});
|
||||
}
|
||||
});
|
||||
|
|
|
@ -6,7 +6,6 @@
|
|||
<xpath expr="//script[@id='website_tour_js']" position="after">
|
||||
<script type="text/javascript" src="/website_blog/static/src/js/website_blog.editor.js"></script>
|
||||
<script type="text/javascript" src="/website_blog/static/src/js/website.tour.blog.js"></script>
|
||||
<script type="text/javascript" src="/website_blog/static/lib/contentshare.js"></script>
|
||||
</xpath>
|
||||
</template>
|
||||
|
||||
|
@ -385,6 +384,7 @@
|
|||
<link rel='stylesheet' href='/website_blog/static/lib/inlineDisqussions/inlineDisqussions.css'/>
|
||||
<script type="text/javascript" src="/website_blog/static/lib/inlineDisqussions/inlineDisqussions.js"></script>
|
||||
<script type="text/javascript" src="/website_blog/static/src/js/website_blog.js"/>
|
||||
<script type="text/javascript" src="/website_blog/static/lib/contentshare.js"/>
|
||||
</t>
|
||||
<div id="wrap" class="js_blog">
|
||||
<t t-raw="0"/>
|
||||
|
|
Loading…
Reference in New Issue