Skip to content

Commit 23132d3

Browse files
committed
Merge branch 'master' of https://github.com/hayk/selfoss into hayk
Conflicts: public/js/selfoss-events-entriestoolbar.js templates/item.phtml
2 parents acf1daa + 2bb4a62 commit 23132d3

File tree

4 files changed

+13
-0
lines changed

4 files changed

+13
-0
lines changed

public/css/style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff 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);

public/images/readability.png

4.59 KB
Loading

public/js/selfoss-events-entriestoolbar.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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());

templates/item.phtml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@
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>
@@ -76,6 +77,7 @@
7677
<li class="entry-sharefacebook entry-share" title="facebook">&nbsp;</li>
7778
<li class="entry-sharepocket entry-share" title="pocket">&nbsp;</li>
7879
<li class="entry-sharedelicious entry-share" title="delicious">&nbsp;</li>
80+
<li class="entry-sharereadability entry-share" title="readability">&nbsp;</li>
7981
<li class="entry-shareemail entry-share" title="email">&nbsp;</li>
8082
<li class="entry-close"></li>
8183
</ul>

0 commit comments

Comments
 (0)