Changeset 29320 for main/trunk
- Timestamp:
- 2014-09-22T13:20:54+12:00 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js
r29226 r29320 966 966 { 967 967 var hlCheckbox = $("#highlightOption"); 968 969 968 if(imageClicked) 970 969 { 971 $(hlCheckbox).attr("checked", !$(hlCheckbox).attr("checked"));972 }973 970 // toggle the state of the checkbox 971 $(hlCheckbox).prop("checked", !$(hlCheckbox).prop("checked")); 972 } 974 973 var from; 975 974 var to; 976 if(hlCheckbox. attr("checked"))975 if(hlCheckbox.prop("checked")) 977 976 { 978 977 from = "noTermHighlight"; … … 1036 1035 option.attr("onclick", "hideText(); showBook(); swapLinkJavascript(false);"); 1037 1036 optionImage.attr("onclick", "hideText(); showBook(); swapLinkJavascript(false);"); 1038 $(option). attr("checked", false);1037 $(option).prop("checked", false); 1039 1038 } 1040 1039 else … … 1042 1041 option.attr("onclick", "hideBook(); showText(); swapLinkJavascript(true);"); 1043 1042 optionImage.attr("onclick", "hideBook(); showText(); swapLinkJavascript(true);"); 1044 $(option). attr("checked", true);1043 $(option).prop("checked", true); 1045 1044 } 1046 1045 } … … 1416 1415 1417 1416 $("#unfloatTOCButton").hide(); 1418 $("#floatTOCToggle"). attr("checked", false);1417 $("#floatTOCToggle").prop("checked", false); 1419 1418 } 1420 1419
Note:
See TracChangeset
for help on using the changeset viewer.