aboutsummaryrefslogtreecommitdiffstats
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/fk.autocomplete.js6
-rw-r--r--js/main.js11
2 files changed, 14 insertions, 3 deletions
diff --git a/js/fk.autocomplete.js b/js/fk.autocomplete.js
index cd0a1c044..8bac41936 100644
--- a/js/fk.autocomplete.js
+++ b/js/fk.autocomplete.js
@@ -32,6 +32,12 @@ function ACPopup(elm,backend_url){
}
}
+ if(! w)
+ w = 530;
+
+ if(! h)
+ h = 130;
+
style.top=style.top+h;
style.width = w;
style.position = 'absolute';
diff --git a/js/main.js b/js/main.js
index 9d764c74e..d5260a4be 100644
--- a/js/main.js
+++ b/js/main.js
@@ -119,6 +119,7 @@
var next_page = 1;
var page_load = true;
var loadingPage = false;
+ var pageHasMoreContent = true;
$(function() {
$.ajaxSetup({cache: false});
@@ -580,11 +581,11 @@ function updateConvItems(mode,data) {
function imgbright(node) {
- $(node).removeClass("drophide").addClass("drop");
+// $(node).removeClass("drophide").addClass("drop");
}
function imgdull(node) {
- $(node).removeClass("drop").addClass("drophide");
+// $(node).removeClass("drop").addClass("drophide");
}
function notify_popup_loader(notifyType) {
@@ -657,12 +658,16 @@ function updateConvItems(mode,data) {
if(data.result == 1) {
$('#starred-' + ident).addClass('starred');
$('#starred-' + ident).removeClass('unstarred');
+ $('#starred-' + ident).addClass('icon-star-full');
+ $('#starred-' + ident).removeClass('icon-star-empty');
$('#star-' + ident).addClass('hidden');
$('#unstar-' + ident).removeClass('hidden');
}
else {
$('#starred-' + ident).addClass('unstarred');
$('#starred-' + ident).removeClass('starred');
+ $('#starred-' + ident).addClass('icon-star-empty');
+ $('#starred-' + ident).removeClass('icon-star-full');
$('#star-' + ident).removeClass('hidden');
$('#unstar-' + ident).addClass('hidden');
}
@@ -984,7 +989,7 @@ $(window).scroll(function () {
}
if($(window).scrollTop() + $(window).height() == $(document).height()) {
- if(! loadingPage) {
+ if((pageHasMoreContent) && (! loadingPage)) {
$('#more').hide();
$('#no-more').hide();
// alert('scroll');