Commits

Anonymous committed 71893d7

photo dialog

Comments (0)

Files changed (1)

newsmeme/templates/photos/photo.html

 <script type="text/javascript">
 $(document).ready(function()
 {
+
+$('#photo').dialog({ autoOpen : false, 
+                     height: window.innerHeight,
+                     width: window.innerWidth,
+                     modal : true,
+                     show : 'fade',
+                     hide : 'fade',
+                     title : '{{ photo.title }}'
+                  });
+
     $('#thumbnail').click(function()
     {
-        $('#photo').dialog();        
+        $('#photo').dialog('open');
     });
 });
 </script>
 {% endblock %}
 
 {% block content %}
+<div id="photo" style="display:none;">
+    <img src="{{ photo.photo_url }}">
+</div>
+
 <h2>
 {% if photo.permissions.vote %}
 <span id="vote-{{ photo.id }}">