Commit 8b6dba749a80fbdf94f1495dda8cf3cdad61a28b
1 parent
8f9a450e
Exists in
master
and in
4 other branches
Reorder notes view elements
Showing
3 changed files
with
13 additions
and
10 deletions
Show diff stats
app/assets/javascripts/note.js
... | ... | @@ -106,8 +106,8 @@ var NoteList = { |
106 | 106 | type: "GET", |
107 | 107 | url: this.notes_path, |
108 | 108 | data: "?" + this.target_params, |
109 | - complete: function(){ $('.status').removeClass("loading")}, | |
110 | - beforeSend: function() { $('.status').addClass("loading") }, | |
109 | + complete: function(){ $('.notes-status').removeClass("loading")}, | |
110 | + beforeSend: function() { $('.notes-status').addClass("loading") }, | |
111 | 111 | dataType: "script"}); |
112 | 112 | }, |
113 | 113 | |
... | ... | @@ -136,8 +136,8 @@ var NoteList = { |
136 | 136 | type: "GET", |
137 | 137 | url: this.notes_path, |
138 | 138 | data: "first_id=" + this.first_id + this.target_params, |
139 | - complete: function(){ $('.status').removeClass("loading")}, | |
140 | - beforeSend: function() { $('.status').addClass("loading") }, | |
139 | + complete: function(){ $('.notes-status').removeClass("loading")}, | |
140 | + beforeSend: function() { $('.notes-status').addClass("loading") }, | |
141 | 141 | dataType: "script"}); |
142 | 142 | }, |
143 | 143 | ... | ... |
app/assets/stylesheets/sections/notes.scss
... | ... | @@ -10,7 +10,7 @@ |
10 | 10 | padding:0px; |
11 | 11 | } |
12 | 12 | |
13 | -#new_notes_list li:last-child{ | |
13 | +#notes-list li:last-child { | |
14 | 14 | border-bottom:1px solid #aaa; |
15 | 15 | } |
16 | 16 | |
... | ... | @@ -71,6 +71,10 @@ |
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | +.notes-status { | |
75 | + margin: 18px; | |
76 | +} | |
77 | + | |
74 | 78 | |
75 | 79 | p.notify_controls input{ |
76 | 80 | margin: 5px; | ... | ... |
app/views/notes/_notes.html.haml