Commit 2d7ee0b5 by Danyi Bence

google font linked, js interface update

parent b104bdf5
...@@ -4,6 +4,7 @@ ...@@ -4,6 +4,7 @@
<html lang="{{lang}}"> <html lang="{{lang}}">
<head> <head>
<title>{% block title %}IK Cloud{% endblock %}</title> <title>{% block title %}IK Cloud{% endblock %}</title>
<link href='http://fonts.googleapis.com/css?family=Metrophobic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="/static/style.css" /> <link rel="stylesheet" href="/static/style.css" />
<link rel="icon" type="image/png" href="/static/favicon.png" /> <link rel="icon" type="image/png" href="/static/favicon.png" />
<link rel="icon" type="image/png" href="one/static/favicon.png"> <link rel="icon" type="image/png" href="one/static/favicon.png">
...@@ -14,7 +15,7 @@ $(function(){ ...@@ -14,7 +15,7 @@ $(function(){
$('.wm .summary').each(function(){ $('.wm .summary').each(function(){
this.originalHeight=parseInt($(this).next('.details').css('height')); this.originalHeight=parseInt($(this).next('.details').css('height'));
}) })
$('.wm .summary').click(function(){ var toggleDetails=function(){
if($(this).next('.details').is(':hidden')){ if($(this).next('.details').is(':hidden')){
$(this).next('.details') $(this).next('.details')
.css('height',0) .css('height',0)
...@@ -31,7 +32,8 @@ $(function(){ ...@@ -31,7 +32,8 @@ $(function(){
$(that).next('.details').hide(); $(that).next('.details').hide();
}); });
} }
}) }
$('.wm .summary').click(toggleDetails);
$('#load-more-files').click(function(){ $('#load-more-files').click(function(){
$('.actions', this).show(); $('.actions', this).show();
var that=this; var that=this;
...@@ -44,6 +46,10 @@ $(function(){ ...@@ -44,6 +46,10 @@ $(function(){
$('#new-wm-button').click(function(){ $('#new-wm-button').click(function(){
$('#modal').show(); $('#modal').show();
$('#modal-container').html($('#new-wm').html()); $('#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);
}); });
$('#shadow').click(function(){ $('#shadow').click(function(){
$('#modal').hide(); $('#modal').hide();
......
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 sign in to comment