Changeset 26307
- Timestamp:
- 2012-10-11T16:39:21+13:00 (12 years ago)
- Location:
- main/trunk/greenstone3/web/interfaces/default
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
r26306 r26307 950 950 * HIGHLIGHTING SCRIPTS * 951 951 ***********************/ 952 function swapHighlight( )952 function swapHighlight(imageClicked) 953 953 { 954 954 var hlCheckbox = document.getElementById("highlightOption"); 955 956 if(imageClicked) 957 { 958 $(hlCheckbox).attr("checked", !$(hlCheckbox).attr("checked")); 959 } 955 960 956 961 var from; … … 1035 1040 { 1036 1041 var option = document.getElementById("rbOption"); 1042 var optionImage = document.getElementById("rbOptionImage"); 1043 1037 1044 if(rbOn) 1038 1045 { 1039 1046 option.setAttribute("onclick", "hideText(); showBook(); swapLinkJavascript(false);"); 1047 optionImage.setAttribute("onclick", "hideText(); showBook(); swapLinkJavascript(false);"); 1048 $(option).attr("checked", false); 1040 1049 } 1041 1050 else 1042 1051 { 1043 1052 option.setAttribute("onclick", "hideBook(); showText(); swapLinkJavascript(true);"); 1053 optionImage.setAttribute("onclick", "hideBook(); showText(); swapLinkJavascript(true);"); 1054 $(option).attr("checked", true); 1044 1055 } 1045 1056 } -
main/trunk/greenstone3/web/interfaces/default/transform/layouts/toc.xsl
r26304 r26307 265 265 </xsl:choose> 266 266 </xsl:attribute> 267 <img >267 <img onclick="showSlideShow()"> 268 268 <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'slideshow_image')"/></xsl:attribute> 269 269 </img> … … 283 283 <li> 284 284 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.realisticBooksTooltip')"/></xsl:attribute> 285 <img >285 <img id="rbOptionImage" onclick="bookInit();"> 286 286 <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'realistic_books_image')"/></xsl:attribute> 287 287 </img> … … 294 294 <li> 295 295 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.highlightTooltip')"/></xsl:attribute> 296 <img >296 <img onclick="swapHighlight(true);"> 297 297 <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'highlight_image')"/></xsl:attribute> 298 298 </img> 299 <input id="highlightOption" type="checkbox" class="optionCheckBox" onclick="swapHighlight( );">299 <input id="highlightOption" type="checkbox" class="optionCheckBox" onclick="swapHighlight(false);"> 300 300 <xsl:if test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'"> 301 301 <xsl:attribute name="checked">true</xsl:attribute> … … 308 308 <li id="zoomOptions" style="display:none;"> 309 309 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.zoomTooltip')"/></xsl:attribute> 310 <img >310 <img id="zoomToggleImage"> 311 311 <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'zoom_image')"/></xsl:attribute> 312 312 </img> … … 318 318 _imageZoomEnabled = $("#zoomToggle").attr("checked"); 319 319 }); 320 321 $("#zoomToggleImage").click(function() 322 { 323 $("#zoomToggle").attr("checked", !$("#zoomToggle").attr("checked")); 324 _imageZoomEnabled = $("#zoomToggle").attr("checked"); 325 }); 320 326 </xsl:text> 321 327 </script> … … 326 332 <li id="floatingTOCOptions"> 327 333 <xsl:attribute name="title"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'doc.floatingTooltip')"/></xsl:attribute> 328 <img >334 <img id="floatTOCToggleImage"> 329 335 <xsl:attribute name="src"><xsl:value-of select="util:getInterfaceText($interface_name, /page/@lang, 'float_toc_image')"/></xsl:attribute> 330 336 </img> … … 337 343 floatMenu($("#floatTOCToggle").attr("checked")); 338 344 }); 345 346 $("#floatTOCToggleImage").click(function() 347 { 348 $("#floatTOCToggle").attr("checked", !$("#floatTOCToggle").attr("checked")) 349 floatMenu($("#floatTOCToggle").attr("checked")); 350 }); 339 351 </xsl:text> 340 352 </script>
Note:
See TracChangeset
for help on using the changeset viewer.