projects
/
Sone.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix jQuery selectors for locating the reply input field.
[Sone.git]
/
src
/
main
/
resources
/
static
/
javascript
/
sone.js
diff --git
a/src/main/resources/static/javascript/sone.js
b/src/main/resources/static/javascript/sone.js
index
3339d18
..
6c7f77c
100644
(file)
--- a/
src/main/resources/static/javascript/sone.js
+++ b/
src/main/resources/static/javascript/sone.js
@@
-2,7
+2,7
@@
function ajaxGet(url, data, successCallback, errorCallback) {
(function(url, data, successCallback, errorCallback) {
function ajaxGet(url, data, successCallback, errorCallback) {
(function(url, data, successCallback, errorCallback) {
- $.ajax({"type": "GET", "url": url, "data": data, "dataType": "json", "success": function(data, textStatus, xmlHttpRequest) {
+ $.ajax({"
cache": false, "
type": "GET", "url": url, "data": data, "dataType": "json", "success": function(data, textStatus, xmlHttpRequest) {
ajaxSuccess();
if (typeof successCallback != "undefined") {
successCallback(data, textStatus);
ajaxSuccess();
if (typeof successCallback != "undefined") {
successCallback(data, textStatus);
@@
-75,7
+75,7
@@
function addCommentLink(postId, author, element, insertAfterThisElement) {
replyElement.removeClass("hidden");
replyElement.removeClass("light");
(function(replyElement) {
replyElement.removeClass("hidden");
replyElement.removeClass("light");
(function(replyElement) {
- replyElement.find("input.reply-input").blur(function() {
+ replyElement.find("
:
input.reply-input").blur(function() {
if ($(this).hasClass("default")) {
replyElement.addClass("light");
}
if ($(this).hasClass("default")) {
replyElement.addClass("light");
}
@@
-83,7
+83,7
@@
function addCommentLink(postId, author, element, insertAfterThisElement) {
replyElement.removeClass("light");
});
})(replyElement);
replyElement.removeClass("light");
});
})(replyElement);
- textArea = replyElement.find("input.reply-input").focus().data("textarea");
+ textArea = replyElement.find("
:
input.reply-input").focus().data("textarea");
if (author != getCurrentSoneId()) {
textArea.val(textArea.val() + "@sone://" + author + " ");
}
if (author != getCurrentSoneId()) {
textArea.val(textArea.val() + "@sone://" + author + " ");
}
@@
-813,7
+813,7
@@
function ajaxifyPost(postElement) {
/* ajaxify author/post links */
$(".post-status-line .permalink a", postElement).click(function() {
if (!$(".create-reply", postElement).hasClass("hidden")) {
/* ajaxify author/post links */
$(".post-status-line .permalink a", postElement).click(function() {
if (!$(".create-reply", postElement).hasClass("hidden")) {
- textArea = $("input.reply-input", postElement).focus().data("textarea");
+ textArea = $("
:
input.reply-input", postElement).focus().data("textarea");
$(textArea).replaceSelection($(this).attr("href"));
}
return false;
$(textArea).replaceSelection($(this).attr("href"));
}
return false;
@@
-832,7
+832,7
@@
function ajaxifyPost(postElement) {
/* process reply input fields. */
getTranslation("WebInterface.DefaultText.Reply", function(text) {
/* process reply input fields. */
getTranslation("WebInterface.DefaultText.Reply", function(text) {
- $(postElement).find("input.reply-input").each(function() {
+ $(postElement).find("
:
input.reply-input").each(function() {
registerInputTextareaSwap(this, text, "text", false, false);
});
});
registerInputTextareaSwap(this, text, "text", false, false);
});
});
@@
-872,7
+872,7
@@
function ajaxifyPost(postElement) {
}).fadeIn();
}, 1000);
}).mouseleave(function() {
}).fadeIn();
}, 1000);
}).mouseleave(function() {
- if (currentSoneMenuId = getPostId(this)) {
+ if (currentSoneMenuId =
=
getPostId(this)) {
clearTimeout(currentSoneMenuTimeoutHandler);
}
});
clearTimeout(currentSoneMenuTimeoutHandler);
}
});
@@
-935,7
+935,7
@@
function ajaxifyReply(replyElement) {
/* ajaxify author links */
$(".reply-status-line .permalink a", replyElement).click(function() {
if (!$(".create-reply", getPostElement(replyElement)).hasClass("hidden")) {
/* ajaxify author links */
$(".reply-status-line .permalink a", replyElement).click(function() {
if (!$(".create-reply", getPostElement(replyElement)).hasClass("hidden")) {
- textArea = $("input.reply-input", getPostElement(replyElement)).focus().data("textarea");
+ textArea = $("
:
input.reply-input", getPostElement(replyElement)).focus().data("textarea");
$(textArea).replaceSelection($(this).attr("href"));
}
return false;
$(textArea).replaceSelection($(this).attr("href"));
}
return false;
@@
-1011,7
+1011,7
@@
function ajaxifyReply(replyElement) {
}).fadeIn();
}, 1000);
}).mouseleave(function() {
}).fadeIn();
}, 1000);
}).mouseleave(function() {
- if (currentSoneMenuId = getPostId(this) + "-" + getReplyId(this)) {
+ if (currentSoneMenuId =
=
getPostId(this) + "-" + getReplyId(this)) {
clearTimeout(currentSoneMenuTimeoutHandler);
}
});
clearTimeout(currentSoneMenuTimeoutHandler);
}
});