From 63e90f82e89f4e2531fad6e93a0eb029465f9de3 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 15:56:40 +0530 Subject: [PATCH 1/6] typo --- itf/static/js/insidepage.js | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 5610487..3cac2b2 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -37,11 +37,13 @@ $('#listLeft ul li a').live("click", function() { }); $('.lightboxNext').live("click", function(e) { - $(this).data("image").click(); + var $i = $(this).data("image"); + $i.click(); }); $('.lightboxPrev').live("click", function(e) { - $(this).data("image").click(); + var $i = $(this).data("image"); + $i.click(); }); $('.thumbsDetails').live("click", function(e) { @@ -52,11 +54,11 @@ $('.thumbsDetails').live("click", function(e) { if (thisIndex < (totalImages - 1)) { var hasNext = true; - var nextImage = $(this).parent().find(".thumbsDetail").eq(thisIndex + 1); + var nextImage = $(this).parent().find(".thumbsDetails").eq(thisIndex + 1); } if (thisIndex > 0 && totalImages > 1) { var hasPrev = true; - var prevImage = $(this).parent().find(".thumbsDetail").eq(thisIndex - 1); + var prevImage = $(this).parent().find(".thumbsDetails").eq(thisIndex - 1); } var bigImage = $(this).attr("data-bigimage"); @@ -68,10 +70,10 @@ $('.thumbsDetails').live("click", function(e) { var $caption = $('
').addClass("lightboxCaption").text(title).appendTo($c); } if (hasNext) { - var $next = $('
').addClass("lightboxNext").text("NEXT").data("image", nextImage).appendTo($c); + var $next = $('
').addClass("lightboxNext").text("next").data("image", nextImage).appendTo($c); } if (hasPrev) { - var $prev = $('
').addClass("lightboxPrev").text("PREV").data("image", prevImage).appendTo($c); + var $prev = $('
').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($c); } }); From 28a66e2cafc0b7be4d04e67e3ccffea3b1ee2626 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:11:45 +0530 Subject: [PATCH 2/6] sorl fix for old meetings page --- itf/templates/meeting.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/itf/templates/meeting.html b/itf/templates/meeting.html index a7b8160..3be5bba 100755 --- a/itf/templates/meeting.html +++ b/itf/templates/meeting.html @@ -240,9 +240,13 @@ str.replace(/[\r\t\n]/g, " ")
{% load thumbnail %} {% for i in data.imagegallery %} - - + {% thumbnail i.file "600x500" crop="center" as bigimage %} + {% thubmnail i.file "100x100" crop="center" as thumb %} + + + {% endthumbnail %} + {% endthumbnail %} {% endfor %}
From f2dacca03813ab8a82ffb6d6cad3e38f0b569b2a Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:13:21 +0530 Subject: [PATCH 3/6] argh --- itf/templates/meeting.html | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/itf/templates/meeting.html b/itf/templates/meeting.html index 3be5bba..90aaade 100755 --- a/itf/templates/meeting.html +++ b/itf/templates/meeting.html @@ -241,12 +241,13 @@ str.replace(/[\r\t\n]/g, " ") {% load thumbnail %} {% for i in data.imagegallery %} {% thumbnail i.file "600x500" crop="center" as bigimage %} - {% thubmnail i.file "100x100" crop="center" as thumb %} + + {% endthumbnail %} + {% thubmnail i.file "100x100" crop="center" as thumb %} + {% endthumbnail %} - {% endthumbnail %} - {% endthumbnail %} {% endfor %}
From e961bd38292a603400d0799396c4bc7e6f0f8750 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:15:40 +0530 Subject: [PATCH 4/6] typo --- itf/templates/meeting.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/templates/meeting.html b/itf/templates/meeting.html index 90aaade..a380a18 100755 --- a/itf/templates/meeting.html +++ b/itf/templates/meeting.html @@ -244,7 +244,7 @@ str.replace(/[\r\t\n]/g, " ") {% endthumbnail %} - {% thubmnail i.file "100x100" crop="center" as thumb %} + {% thumbmnail i.file "100x100" crop="center" as thumb %} {% endthumbnail %} From e13bafae4f07afa57d72008925abecb6d2291257 Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:16:18 +0530 Subject: [PATCH 5/6] typo --- itf/templates/meeting.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/itf/templates/meeting.html b/itf/templates/meeting.html index a380a18..f71a3be 100755 --- a/itf/templates/meeting.html +++ b/itf/templates/meeting.html @@ -244,7 +244,7 @@ str.replace(/[\r\t\n]/g, " ") {% endthumbnail %} - {% thumbmnail i.file "100x100" crop="center" as thumb %} + {% thumbnail i.file "100x100" crop="center" as thumb %} {% endthumbnail %} From 4a66b2e01c1802c45fc7270fc1b192071d30bc4a Mon Sep 17 00:00:00 2001 From: Sanj Date: Mon, 7 Nov 2011 16:19:39 +0530 Subject: [PATCH 6/6] lightbox Container --- itf/static/js/insidepage.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/itf/static/js/insidepage.js b/itf/static/js/insidepage.js index 3cac2b2..20727fb 100755 --- a/itf/static/js/insidepage.js +++ b/itf/static/js/insidepage.js @@ -66,14 +66,15 @@ $('.thumbsDetails').live("click", function(e) { showLightbox($img); var title = $(this).hasAttr("title") ? $(this).attr("title") : ''; var $c = $('#lightboxContent'); + var $cont = $('.lightboxContainer').appendTo($c); if (title != '') { - var $caption = $('
').addClass("lightboxCaption").text(title).appendTo($c); + var $caption = $('
').addClass("lightboxCaption").text(title).appendTo($cont); } if (hasNext) { - var $next = $('
').addClass("lightboxNext").text("next").data("image", nextImage).appendTo($c); + var $next = $('
').addClass("lightboxNext").text("next").data("image", nextImage).appendTo($cont); } if (hasPrev) { - var $prev = $('
').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($c); + var $prev = $('
').addClass("lightboxPrev").text("prev").data("image", prevImage).appendTo($cont); } });