- Timestamp:
- 2012-10-11T16:39:21+13:00 (12 years ago)
- File:
-
- 1 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 }
Note:
See TracChangeset
for help on using the changeset viewer.