Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Gyuricska Milán
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
31b2839f
authored
Apr 18, 2013
by
Bence Dányi
Committed by
Őry Máté
Apr 18, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
webui: magic try-catch added
Conflicts: one/static/script/cloud.js
parent
7cb6bce6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
one/static/script/cloud.js
+15
-7
No files found.
one/static/script/cloud.js
View file @
31b2839f
var
toggleDetails
;
$
(
function
()
{
toggleDetails
=
function
()
{
if
(
$
(
this
).
parent
(
'.entry'
).
hasClass
(
'opened'
))
{
$
(
this
).
parent
(
'.entry'
).
removeClass
(
'opened'
);
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
'0px'
);
}
else
{
$
(
this
).
parent
(
'.entry'
).
addClass
(
'opened'
);
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
$
(
this
).
next
(
'.details'
).
find
(
'.details-container'
)[
0
].
offsetHeight
+
15
+
'px'
);
try
{
if
(
$
(
this
).
parent
(
'.entry'
).
hasClass
(
'opened'
))
{
$
(
this
).
parent
(
'.entry'
).
removeClass
(
'opened'
);
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
'0px'
);
}
else
{
$
(
this
).
parent
(
'.entry'
).
addClass
(
'opened'
);
if
(
$
(
this
).
data
(
'fallback'
)
==
'slide'
)
{
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
'auto'
);
}
else
{
$
(
this
).
next
(
'.details'
).
css
(
'height'
,
$
(
this
).
next
(
'.details'
).
find
(
'.details-container'
)[
0
].
offsetHeight
+
15
+
'px'
);
}
}
}
catch
(
ex
)
{
//make sure we never fail :-)
}
}
$
(
'a[href=#]'
).
click
(
function
(
e
)
{
...
...
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