Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
  • 3 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Commits on Mar 05, 2012
Johan Bichel Lindegaard Added textfield for copying link on share page. 869a029
Johan Bichel Lindegaard Added autoselect on textarea. 6c136ea
Johan Bichel Lindegaard Merge branch 'master' of github.com:Notalib/LYT 5f051c2
Showing with 11 additions and 3 deletions.
  1. +8 −3 html/pages/share.html
  2. +3 −0 src/controllers/control.coffee
View
11 html/pages/share.html
@@ -8,14 +8,19 @@
<div data-role="content" data-theme="a">
<div class="ui-bar-c">
<h2>Del bog</h2>
- <div id="text-field">
- <p> Del et direkte link til bogen ved at markere og herefter kopiere linket herunder.</p>
+ <div class="text-field">
+
+ <p>Del et direkte link til bogen ved at markere og herefter kopiere linket herunder:</p>
+ <textarea cols="40" rows="8" onclick="this.focus();this.select()" readonly="readonly"
+ name="share-link-textarea" id="share-link-textarea"></textarea>
+
<hr>
</div>
<h2>Mail link</h2>
- <div id="text-field">
+ <div class="text-field">
<p>Tryk på knappen herunder for at sende en mail med link til bogen.</p>
</div>
+
</div>
<div data-role="fieldcontain" id="mail-button-wrapper">
<a id="email-bookmark" href="" rel="external" data-role="button">Del bog</a>
View
3 src/controllers/control.coffee
@@ -359,6 +359,9 @@ LYT.control =
subject = "Link til bog på E17"
body = "Hør #{LYT.player.book.title} her #{LYT.player.getCurrentlyPlayingUrl()}"
$("#email-bookmark").attr('href', "mailto:?subject=#{subject}&body=#{body}")
+
+ $("#share-link-textarea").html LYT.player.getCurrentlyPlayingUrl()
+
else
history.back()
# todo: better error handling here

No commit comments for this range

Something went wrong with that request. Please try again.