Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
CIRCLE
/
cloud
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
94
Merge Requests
10
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
A prog2-höz tartozó friss repo anyagok itt elérhetőek:
https://git.iit.bme.hu/
Commit
9b08c899
authored
Jan 30, 2013
by
Dányi Bence
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new-wm html fix
parent
d557156a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
14 deletions
+22
-14
one/templates/base.html
+19
-11
one/templates/home.html
+3
-3
No files found.
one/templates/base.html
View file @
9b08c899
...
...
@@ -12,11 +12,12 @@
<script
src=
"/static/jquery.min.js"
></script>
<script
src=
"/static/less.min.js"
></script>
<script
type=
"text/javascript"
>
var
toggleDetails
;
$
(
function
(){
$
(
'.wm .summary'
).
each
(
function
(){
this
.
originalHeight
=
parseInt
(
$
(
this
).
next
(
'.details'
).
css
(
'height'
));
})
var
toggleDetails
=
function
(){
toggleDetails
=
function
(){
if
(
$
(
this
).
next
(
'.details'
).
is
(
':hidden'
)){
$
(
this
).
next
(
'.details'
)
.
show
()
...
...
@@ -47,20 +48,26 @@ $(function(){
},
2000
);
})
$
(
'#new-wm-button'
).
click
(
function
(){
$
(
'#modal'
).
show
();
$
(
'#modal-container'
).
html
(
$
(
'#new-wm'
).
html
());
$
(
'#modal-container .wm .summary'
).
each
(
function
(){
this
.
originalHeight
=
parseInt
(
$
(
this
).
next
(
'.details'
).
css
(
'height'
));
})
$
(
'#modal-container .wm .summary'
).
click
(
toggleDetails
);
});
$
(
'#modal'
).
show
();
$
(
'#modal-container'
).
html
(
$
(
'#new-wm'
).
html
());
$
(
'#modal-container .wm .summary'
).
each
(
function
(){
this
.
originalHeight
=
parseInt
(
$
(
this
).
next
(
'.details'
).
css
(
'height'
));
})
$
(
'#modal-container .wm .summary'
).
click
(
toggleDetails
);
});
$
(
'#new-template-button'
).
click
(
function
(){
$
(
'#modal'
).
show
();
$
(
'#modal-container'
).
html
(
$
(
'#new-template'
).
html
());
$
(
'#modal'
).
show
();
$
(
'#modal-container'
).
html
(
$
(
'#new-template'
).
html
());
});
$
(
'#shadow'
).
click
(
function
(){
$
(
'#modal'
).
hide
();
$
(
'#modal'
).
hide
();
})
$
(
'#new-template-button'
).
click
(
function
(){
$
.
get
(
'/ajax/templateWizard'
,
function
(
data
){
$
(
'#modal-container'
).
html
(
data
);
})
$
(
'#modal'
).
show
();
});
})
</script>
...
...
@@ -113,6 +120,7 @@ $(function(){
<div
id=
"modal"
style=
"display: none"
>
<div
id=
"shadow"
></div>
<div
id=
"modal-container"
>
</div>
</div>
</body>
...
...
one/templates/home.html
View file @
9b08c899
...
...
@@ -15,6 +15,9 @@
</li>
<li
id=
"new-wm"
style=
"display: none"
>
<h2>
Rendelkezésre álló sablonok
</h2>
<p>
Mese, hogy mit is lehet csinálni.
</p>
<div
class=
"container"
>
<ul
class=
"wm-list modal"
>
{% for m in templates %}
...
...
@@ -97,9 +100,6 @@
<div
class=
"clear"
></div>
</div>
</li>
<script
type=
"text/html"
id=
"new-template"
style=
"display: none"
>
{
%
include
"new-template-flow.html"
%
}
</script>
</ul>
</div>
{% for box in boxes %}
...
...
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