aboutsummaryrefslogtreecommitdiffstats
path: root/view/js/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'view/js/main.js')
-rw-r--r--view/js/main.js19
1 files changed, 17 insertions, 2 deletions
diff --git a/view/js/main.js b/view/js/main.js
index 18004726e..8ee676f0d 100644
--- a/view/js/main.js
+++ b/view/js/main.js
@@ -9,6 +9,10 @@
if(obj.value == aStr['comment']) {
obj.value = '';
$("#comment-edit-text-" + id).addClass("comment-edit-text-full").removeClass("comment-edit-text-empty");
+ // Choose an arbitrary tab index that's greater than what we're using in jot (3 of them)
+ // The submit button gets tabindex + 1
+ $("#comment-edit-text-" + id).attr('tabindex','9');
+ $("#comment-edit-submit-" + id).attr('tabindex','10');
$("#comment-tools-" + id).show();
}
};
@@ -25,6 +29,8 @@
if(obj.value == '') {
obj.value = aStr['comment'];
$("#comment-edit-text-" + id).removeClass("comment-edit-text-full").addClass("comment-edit-text-empty");
+ $("#comment-edit-text-" + id).removeAttr('tabindex');
+ $("#comment-edit-submit-" + id).removeAttr('tabindex');
$("#comment-tools-" + id).hide();
}
};
@@ -563,10 +569,19 @@ function updateConvItems(mode,data) {
}
prev = ident;
});
-
+
if(loadingPage) {
loadingPage = false;
}
+
+ if (window.location.search.indexOf("mid=") != -1 || window.location.pathname.indexOf("display") != -1) {
+ var title = $(".wall-item-title").text();
+ title.replace(/^\s+/, '');
+ title.replace(/\s+$/, '');
+ if (title)
+ document.title = title + " - " + document.title;
+ }
+
}
$('.like-rotator').spin(false);
@@ -1157,7 +1172,7 @@ $(window).scroll(function () {
}
if($(window).scrollTop() + $(window).height() > $(document).height() - 100) {
-// if($(window).scrollTop() > ($(document).height() - $(window).height() * 1.5 )) {
+// if($(window).scrollTop() > $(document).height() - ($(window).height() * 1.5 )) {
if((pageHasMoreContent) && (! loadingPage)) {
$('#more').hide();