Index: lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties =================================================================== diff -u -r6ef6746ff5178819511bb5b9000f3fbc31aaea66 -r0f6fefcd6c8a98859a9d673514968eabeed70348 --- lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 6ef6746ff5178819511bb5b9000f3fbc31aaea66) +++ lams_tool_images/conf/language/lams/ApplicationResources_en_AU.properties (.../ApplicationResources_en_AU.properties) (revision 0f6fefcd6c8a98859a9d673514968eabeed70348) @@ -86,6 +86,7 @@ label.learning.by =By label.learning.comments =Comments label.learning.added.by =Added by: +label.learning.open.original.size =Open original size monitoring.tab.summary =Summary monitoring.tab.statistics =Statistic monitoring.tab.edit.activity =Edit Activity Index: lams_tool_images/web/includes/javascript/thickbox.js =================================================================== diff -u -r4b9aac6879339e46cb0a163a8f72400aed80c041 -r0f6fefcd6c8a98859a9d673514968eabeed70348 --- lams_tool_images/web/includes/javascript/thickbox.js (.../thickbox.js) (revision 4b9aac6879339e46cb0a163a8f72400aed80c041) +++ lams_tool_images/web/includes/javascript/thickbox.js (.../thickbox.js) (revision 0f6fefcd6c8a98859a9d673514968eabeed70348) @@ -65,8 +65,12 @@ var urlString = /\.jpg$|\.jpeg$|\.png$|\.gif$|\.bmp$/; var urlType = baseURL.toLowerCase().match(urlString); - if(urlType == '.jpg' || urlType == '.jpeg' || urlType == '.png' || urlType == '.gif' || urlType == '.bmp'){//code to show images - + var queryString = url.replace(/^[^\?]+\??/,''); + var params = tb_parseQuery( queryString ); + + + if((!params['modal'])){//code to show images + TB_PrevCaption = ""; TB_PrevURL = ""; TB_PrevHTML = ""; @@ -123,10 +127,10 @@ } // End Resizing - TB_WIDTH = imageWidth + 30; - TB_HEIGHT = imageHeight + 60; - $("#TB_window").append(""+caption+"" + "
"+caption+"
" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "
close or Esc Key
"); - + TB_WIDTH = imageWidth + 50; + TB_HEIGHT = imageHeight + 80; + $("#TB_window").append(" " + "
"+caption+"
" + TB_imageCount + TB_PrevHTML + TB_NextHTML + "
close or Esc Key
"); + $("#TB_closeWindowButton").click(tb_remove); if (!(TB_PrevHTML === "")) { @@ -180,9 +184,6 @@ imgPreloader.src = url; }else{//code to show html - - var queryString = url.replace(/^[^\?]+\??/,''); - var params = tb_parseQuery( queryString ); TB_WIDTH = (params['width']*1) + 30 || 630; //defaults to 630 if no paramaters were added to URL TB_HEIGHT = (params['height']*1) + 40 || 440; //defaults to 440 if no paramaters were added to URL Index: lams_tool_images/web/pages/authoring/parts/itemlist.jsp =================================================================== diff -u -r652111fe350d40bff43cee483baef22d8b3b27ae -r0f6fefcd6c8a98859a9d673514968eabeed70348 --- lams_tool_images/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision 652111fe350d40bff43cee483baef22d8b3b27ae) +++ lams_tool_images/web/pages/authoring/parts/itemlist.jsp (.../itemlist.jsp) (revision 0f6fefcd6c8a98859a9d673514968eabeed70348) @@ -30,7 +30,7 @@ - ${image.title} + ${image.title} Index: lams_tool_images/web/pages/learning/learning.jsp =================================================================== diff -u -r3bc514681593b0694c54d0c77da015388362c196 -r0f6fefcd6c8a98859a9d673514968eabeed70348 --- lams_tool_images/web/pages/learning/learning.jsp (.../learning.jsp) (revision 3bc514681593b0694c54d0c77da015388362c196) +++ lams_tool_images/web/pages/learning/learning.jsp (.../learning.jsp) (revision 0f6fefcd6c8a98859a9d673514968eabeed70348) @@ -35,9 +35,10 @@ .caption{position:absolute;top:0px;left:0px;width:150px;font-size:12px;color:#0087e5;} #description{position:absolute; top:1000px; left:1000px; width:150px; font-style:italic;} + #openOriginalSizeLink{position:absolute; top:1000px; left:1000px;} #rating_stars{position: absolute; top: 1000px; left: 1000px; width:150px; margin-top: 10} - #main_image{margin: 0 auto 20 0; height: ${(mediumImageDimensions*3)/4 + 20}px; width: ${mediumImageDimensions}px;} + #main_image{margin: 0 auto 20 0; height: ${(mediumImageDimensions*3)/4 + 40}px; width: ${mediumImageDimensions}px;} #main_image img{margin-bottom: 10px; border: 1px solid #111;} .check_for_new{position: relative; top: -123px; left: 660px;} @@ -79,14 +80,19 @@ $('#description').html(""); $("#description").css('left', image.width() + 20); $("#description").css('top', caption.height() + 10); + + var linkLeftPosition = ($("#openOriginalSizeLink_size").width() >= image.width()) ? 0 : ((image.width() - $("#openOriginalSizeLink_size").width())/2); + $("#openOriginalSizeLink").css('left', linkLeftPosition); + $("#openOriginalSizeLink").css('top', image.height() + 10); + $("#openOriginalSizeLink").width(image.width()); + setStarRatingChecked(0); $("#rating_stars").css('left', image.width() + 20); $("#rating_stars").css('top', image.height() - 40); //adjust #main_image height to real image size var newHeight = (image.height() >= ${(mediumImageDimensions*3)/4}) ? ${mediumImageDimensions} : ${(mediumImageDimensions*3)/4}; - //!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!TODO for the JIRA - $('#main_image').css('height', newHeight + 20); + $('#main_image').css('height', newHeight + 40); loadImageData(thumb.attr('id')); }, @@ -161,6 +167,13 @@ var description = $('#commentsArea_addedBy').val() + $('#commentsArea_description').val(); $('#description').html(description); + var title = $('#commentsArea_title').val(); + $("#openOriginalSizeLink a").attr('title', title); + + var href = ""; + href = href + "&uuid=" + $('#commentsArea_originalFileUuid').val(); + $("#openOriginalSizeLink a").attr('href', href); + var imageUid = $('#commentsArea_imageUid').val(); if (${imageGallery.allowRank && (mode != 'teacher')}) { //adjust #rating_stars top position to description height @@ -273,6 +286,12 @@
+ + <%--Ranking/Voting area---------------------------------------%> @@ -406,6 +425,10 @@ + + <%--closes content--%> Index: lams_tool_images/web/pages/learning/parts/commentsarea.jsp =================================================================== diff -u -r3bc514681593b0694c54d0c77da015388362c196 -r0f6fefcd6c8a98859a9d673514968eabeed70348 --- lams_tool_images/web/pages/learning/parts/commentsarea.jsp (.../commentsarea.jsp) (revision 3bc514681593b0694c54d0c77da015388362c196) +++ lams_tool_images/web/pages/learning/parts/commentsarea.jsp (.../commentsarea.jsp) (revision 0f6fefcd6c8a98859a9d673514968eabeed70348) @@ -17,6 +17,8 @@ + +