EliteJournal 1.9.401 → 1.9.403
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
require_dependency 'trackback'
|
|
2
2
|
|
|
3
3
|
class PostController < ApplicationController
|
|
4
|
-
before_filter :auth_required, :except => :reply
|
|
4
|
+
before_filter :auth_required, :except => [:reply, :replyxml]
|
|
5
5
|
cache_sweeper :feed_killer, :only => [:new, :edit, :destroy, :destroyxml]
|
|
6
6
|
|
|
7
7
|
def index
|
|
@@ -126,6 +126,6 @@ class PostController < ApplicationController
|
|
|
126
126
|
@post = Post.find(@params['id'])
|
|
127
127
|
@params['comment']['body'].strip! # what the fuck, safari? \000?
|
|
128
128
|
@comment = @post.comments.create(@params['comment'])
|
|
129
|
-
render_without_layout '
|
|
129
|
+
render_without_layout 'post/replyxml'
|
|
130
130
|
end
|
|
131
131
|
end
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
/* This file contains javascripts to manipulate the UI */
|
|
2
2
|
function showReply(post) {
|
|
3
|
+
return true; /* DISABLE THIS FOR NOW, IT DOESN'T WORK RIGHT */
|
|
3
4
|
postreply = document.getElementById('post_reply_' + post);
|
|
4
5
|
document.getElementById("postreply_" + post).style.display = 'block';
|
|
5
6
|
postreply.innerHTML = 'Cancel Reply';
|
|
@@ -12,7 +12,7 @@ function sendReply(post) {
|
|
|
12
12
|
if (!(xmlhttp = new XHConn())) {
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
15
|
-
xmlhttp.connect('/
|
|
15
|
+
xmlhttp.connect('/post/replyxml/' + post, 'POST', postData, _sendReply);
|
|
16
16
|
return false;
|
|
17
17
|
}
|
|
18
18
|
|
|
@@ -116,11 +116,11 @@ div.comment {
|
|
|
116
116
|
width: 7em;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
|
|
119
|
+
#postreply textarea {
|
|
120
120
|
width: 100%;
|
|
121
121
|
height: 200px;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
-
|
|
124
|
+
#postreply input[type=text] {
|
|
125
125
|
width: 100%;
|
|
126
126
|
}
|