Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Fiat Tux
Hat softwares
Lutim
Commits
86ee5287
Commit
86ee5287
authored
Sep 24, 2015
by
Luc Didry
Browse files
Fixes
#11
Select input text when focus
parent
e51e8f3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/partial/lutim.js.ep
View file @
86ee5287
%
#
vim
:
set
sw
=
4
ts
=
4
sts
=
4
ft
=
javascript
expandtab
:
%=
javascript
begin
function
selectInput
()
{
$
(
this
).
select
();
}
function
tw_url
(
url
)
{
var
btn
=
'
<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
);
}
},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment