Permalink
Browse files

Refactor rest of app into haml, but unable to get popup working in vi…

…ew directly
  • Loading branch information...
1 parent d5b7e54 commit c7093752ab6e182e58bc777acc9c37425c65b5f7 Andy Zhang committed Mar 23, 2013
@@ -13,5 +13,6 @@ $ ->
$('#curated').append('</br><hr>')
commentsArray.push(commentJSON.commentId)
- $('#comments').click ->
- window.open commentsLocation, 'comments', 'height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes'
+ $('.comments').click (event) ->
+ event.preventDefault()
+ window.open commentsLocation, 'comments', 'height=700,width=800,left=10,top=10,resizable=yes,scrollbars=yes,toolbar=yes'
@@ -0,0 +1,3 @@
+%span.comments
+ =link_to 'Open Comments'
+.curated
@@ -1,4 +0,0 @@
-<span id='comments'>
- <a href=''>Open Comments</a>
-</span>
-<div id='curated'></div>
@@ -1,14 +1,9 @@
-<!DOCTYPE html>
-<html>
-<head>
- <title>CmsRails</title>
- <%= stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true %>
- <%= javascript_include_tag "application", "data-turbolinks-track" => true %>
- <%= csrf_meta_tags %>
-</head>
-<body>
+%html
+ %head
+ %title CmsRails
+ = stylesheet_link_tag "application", media: "all", "data-turbolinks-track" => true
+ = javascript_include_tag "application", "data-turbolinks-track" => true
+ = csrf_meta_tags
-<%= yield %>
-
-</body>
-</html>
+ %body
+ = yield

0 comments on commit c709375

Please sign in to comment.