Colorbox: lepší promítačka fotek.
authorFrantišek Kučera <franta-hg@frantovo.cz>
Sun Aug 15 22:47:33 2010 +0200 (2010-08-15)
changeset 153c84a3e3c8a46
parent 152 1519f46f9647
child 154 bf21a4abea9b
Colorbox: lepší promítačka fotek.
java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/ChatEJB.java
java/nekurak.net-web/web/WEB-INF/tags/nekurak/fotkyPodniku.tag
java/nekurak.net-web/web/js/colorbox/colorbox.css
java/nekurak.net-web/web/js/colorbox/images
java/nekurak.net-web/web/js/colorbox/jquery.colorbox-min.js
     1.1 --- a/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/ChatEJB.java	Sun Aug 15 22:46:13 2010 +0200
     1.2 +++ b/java/nekurak.net-ejb/src/java/cz/frantovo/nekurak/ejb/ChatEJB.java	Sun Aug 15 22:47:33 2010 +0200
     1.3 @@ -72,7 +72,7 @@
     1.4  		}
     1.5  	}
     1.6  
     1.7 -	@PostConstruct
     1.8 +	//@PostConstruct //dočasně vypnuté
     1.9  	public void inicializuj() throws NekurakVyjimka, NamingException {
    1.10  		pripojXMPP();
    1.11  	}
     2.1 --- a/java/nekurak.net-web/web/WEB-INF/tags/nekurak/fotkyPodniku.tag	Sun Aug 15 22:46:13 2010 +0200
     2.2 +++ b/java/nekurak.net-web/web/WEB-INF/tags/nekurak/fotkyPodniku.tag	Sun Aug 15 22:47:33 2010 +0200
     2.3 @@ -11,8 +11,8 @@
     2.4  	<div id="fotkyPodniku${podnik.id}">
     2.5  		<c:forEach var="fotka" items="${podnik.fotky}">
     2.6  			<p>
     2.7 -				<a href="${nkfn:fotka(fotka.id, false)}">
     2.8 -					<img src="${nkfn:fotka(fotka.id, true)}" alt="fotka" title="${fn:escapeXml(fotka.popis)}"/>
     2.9 +				<a href="${nkfn:fotka(fotka.id, false)}" rel="colorbox_p_${podnik.id}" title="${fn:escapeXml(fotka.popis)}">
    2.10 +					<img src="${nkfn:fotka(fotka.id, true)}" alt="${fn:escapeXml(fotka.popis)}"/>
    2.11  				</a>
    2.12  			</p>
    2.13  		</c:forEach>
    2.14 @@ -21,7 +21,10 @@
    2.15  
    2.16  	<c:if test="${nkfn:maFotky(podnik)}">
    2.17  		<script type="text/javascript">
    2.18 -		fotkyPodniku.aktivuj(${podnik.id});
    2.19 +			$(document).ready(function(){
    2.20 +				fotkyPodniku.aktivuj(${podnik.id});
    2.21 +				$("a[rel='colorbox_p_${podnik.id}']").colorbox();
    2.22 +			});
    2.23  		</script>
    2.24  	</c:if>
    2.25  </jsp:root>
    2.26 \ No newline at end of file
     3.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     3.2 +++ b/java/nekurak.net-web/web/js/colorbox/colorbox.css	Sun Aug 15 22:47:33 2010 +0200
     3.3 @@ -0,0 +1,1 @@
     3.4 +../../../lib/js/colorbox/example1/colorbox.css
     3.5 \ No newline at end of file
     4.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     4.2 +++ b/java/nekurak.net-web/web/js/colorbox/images	Sun Aug 15 22:47:33 2010 +0200
     4.3 @@ -0,0 +1,1 @@
     4.4 +../../../lib/js/colorbox/example1/images/
     4.5 \ No newline at end of file
     5.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     5.2 +++ b/java/nekurak.net-web/web/js/colorbox/jquery.colorbox-min.js	Sun Aug 15 22:47:33 2010 +0200
     5.3 @@ -0,0 +1,1 @@
     5.4 +../../../lib/js/colorbox/colorbox/jquery.colorbox-min.js
     5.5 \ No newline at end of file