Commit 86ee5287 authored by Luc Didry's avatar Luc Didry
Browse files

Fixes #11 Select input text when focus

parent e51e8f3d
% # vim:set sw=4 ts=4 sts=4 ft=javascript expandtab:
%= javascript begin
function selectInput() {
$(this).select();
}
function tw_url(url) {
var btn = '&nbsp;&nbsp;&nbsp;<a title="<%= l('Tweet it!') %>" target="_blank" href="https://twitter.com/share?url=<%== url_for('/')->to_abs() %>'+url+'?t"><span class="icon icon-twitter"></span></a>';
if (navigator.mozSetMessageHandler !== undefined) {
......@@ -171,6 +174,8 @@
if (data.success) {
$('.close').unbind('click', evaluateCopyAll);
$('.close').on('click', evaluateCopyAll);
$('input[type=\'text\']').unbind("click", selectInput);
$('input[type=\'text\']').on("click", selectInput);
addItem(data.msg);
}
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment