forked from rumblelabs/couchbase-squish
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
have generated short url autofocus for ease of copying t:10m
- Loading branch information
Will McNeilly
committed
Sep 19, 2011
1 parent
f1d3056
commit 8c7926c
Showing
2 changed files
with
3 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<div class="short-link-container"> | ||
<label>Squished</label> | ||
<input type="text" onclick="this.focus();this.select()" readonly="readonly" value="<%= "#{short_url(@link)}" %>"/> | ||
<input type="text" readonly="readonly" value="<%= "#{short_url(@link)}" %>"/> | ||
</div> | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
$('.short-link-container').remove(); | ||
$('#new_link').after("<%= escape_javascript(render(:partial => "short_url")) %>"); | ||
$('.link-table').prepend("<%= escape_javascript(render(:partial => "link", :locals => { :link => @link })) %>"); | ||
$('.link-table').prepend("<%= escape_javascript(render(:partial => "link", :locals => { :link => @link })) %>"); | ||
$('.short-link-container input').focus().select(); |