File tree Expand file tree Collapse file tree 4 files changed +13
-0
lines changed
Expand file tree Collapse file tree 4 files changed +13
-0
lines changed Original file line number Diff line number Diff line change @@ -549,6 +549,10 @@ input {
549549 .entry-sharepocket {
550550 background-image : url (images/pocket.png);
551551 }
552+
553+ .entry-sharereadability {
554+ background-image : url (images/readability.png);
555+ }
552556
553557 .entry-sharedelicious {
554558 background-image : url (images/delicious.png);
Original file line number Diff line number Diff line change @@ -63,6 +63,13 @@ selfoss.events.entriesToolbar = function(parent) {
6363 return false ;
6464 } ) ;
6565
66+ // share with readability
67+ parent . find ( '.entry-sharereadability' ) . unbind ( 'click' ) . click ( function ( e ) {
68+ window . open ( " http://www.readability.com/save?url=" + encodeURIComponent ( $ ( this ) . parents ( ".entry" ) . children ( "a" ) . eq ( 0 ) . attr ( "href" ) ) ) ;
69+ e . preventDefault ( ) ;
70+ return false ;
71+ } ) ;
72+
6673 // share with e-mail
6774 parent . find ( '.entry-shareemail' ) . unbind ( 'click' ) . click ( function ( e ) {
6875 document . location . href = "mailto:?body=" + encodeURIComponent ( $ ( this ) . parents ( ".entry" ) . children ( "a" ) . eq ( 0 ) . attr ( "href" ) ) + "&subject=" + encodeURIComponent ( $ ( this ) . parents ( ".entry" ) . children ( ".entry-title" ) . html ( ) ) ;
Original file line number Diff line number Diff line change 6161 <li class="entry-sharefacebook" title="facebook">facebook</li>
6262 <li class="entry-sharepocket" title="pocket">pocket</li>
6363 <li class="entry-sharedelicious" title="delicious">delicious</li>
64+ <li class="entry-sharereadability" title="readability">readability</li>
6465 <li class="entry-shareemail" title="email">email</li>
6566 </ul>
6667 </div>
7677 <li class="entry-sharefacebook entry-share" title="facebook"> </li>
7778 <li class="entry-sharepocket entry-share" title="pocket"> </li>
7879 <li class="entry-sharedelicious entry-share" title="delicious"> </li>
80+ <li class="entry-sharereadability entry-share" title="readability"> </li>
7981 <li class="entry-shareemail entry-share" title="email"> </li>
8082 <li class="entry-close"></li>
8183 </ul>
You can’t perform that action at this time.
0 commit comments