[IMP] : onclick share open new window

bzr revid: aja@tinyerp.com-20140204184529-a99d3g1mq43xzoko
This commit is contained in:
ajay javiya (OpenERP) 2014-02-05 00:15:29 +05:30
parent 59cc4f2d7f
commit ae1fbf20d1
1 changed files with 1 additions and 1 deletions

View File

@ -9,7 +9,7 @@
var current_url = window.location.href
var selected_text = this.getSelection('string').substring(0,option.maxLength-(current_url.length+3));
var text = encodeURIComponent('\"'+selected_text+'\" '+ current_url)
return '<a href="'+option.shareLink+text+'"target=\"_'+option.target+'\""><i class="fa fa-twitter fa-lg"</a>';
return '<a onclick="window.open(\''+option.shareLink+text+'\',\'_'+option.target+'\',\'location=yes,height=570,width=520,scrollbars=yes,status=yes\')"><i class="fa fa-twitter fa-lg"/></a>';
},
getSelection : function(share) {
if(window.getSelection){