Changeset 29319 for main/trunk
- Timestamp:
- 2014-09-22T13:19:35+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/transform/layouts/toc.xsl
r29165 r29319 297 297 </img> 298 298 <input id="highlightOption" type="checkbox" class="optionCheckBox" onclick="swapHighlight(false);"> 299 <xsl:if test="/page/pageRequest/paramList/param[@name = 'hl']/@value = 'on'">300 <xsl:attribute name="checked"> true</xsl:attribute>299 <xsl:if test="/page/pageRequest/paramList/param[@name = 'hl']/@value != 'off'"> 300 <xsl:attribute name="checked">checked</xsl:attribute> 301 301 </xsl:if> 302 302 </input> … … 315 315 $("#zoomToggle").change(function() 316 316 { 317 _imageZoomEnabled = $("#zoomToggle"). attr("checked");317 _imageZoomEnabled = $("#zoomToggle").prop("checked"); 318 318 }); 319 319 320 320 $("#zoomToggleImage").click(function() 321 321 { 322 $("#zoomToggle"). attr("checked", !$("#zoomToggle").attr("checked"));323 _imageZoomEnabled = $("#zoomToggle"). attr("checked");322 $("#zoomToggle").prop("checked", !$("#zoomToggle").prop("checked")); 323 _imageZoomEnabled = $("#zoomToggle").prop("checked"); 324 324 }); 325 325 </xsl:text> … … 337 337 <script type="text/javascript"> 338 338 <xsl:text disable-output-escaping="yes"> 339 $("#floatTOCToggle"). attr("checked", false);339 $("#floatTOCToggle").prop("checked", false); 340 340 $("#floatTOCToggle").click(function() 341 341 { 342 floatMenu($("#floatTOCToggle"). attr("checked"));342 floatMenu($("#floatTOCToggle").prop("checked")); 343 343 }); 344 344 345 345 $("#floatTOCToggleImage").click(function() 346 346 { 347 $("#floatTOCToggle"). attr("checked", !$("#floatTOCToggle").attr("checked"))348 floatMenu($("#floatTOCToggle"). attr("checked"));347 $("#floatTOCToggle").prop("checked", !$("#floatTOCToggle").prop("checked")) 348 floatMenu($("#floatTOCToggle").prop("checked")); 349 349 }); 350 350 </xsl:text> … … 356 356 $(window).load(function() 357 357 { 358 $("#floatTOCToggle"). attr("checked", true);358 $("#floatTOCToggle").prop("checked", true); 359 359 floatMenu(true); 360 360 });
Note:
See TracChangeset
for help on using the changeset viewer.