Ignore:
Timestamp:
2012-10-11T16:39:21+13:00 (12 years ago)
Author:
sjm84
Message:

The view option images can now be clicked as well as the checkboxes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/greenstone3/web/interfaces/default/js/document_scripts.js

    r26306 r26307  
    950950* HIGHLIGHTING SCRIPTS *
    951951***********************/
    952 function swapHighlight()
     952function swapHighlight(imageClicked)
    953953{
    954954    var hlCheckbox = document.getElementById("highlightOption");
     955
     956    if(imageClicked)
     957    {
     958        $(hlCheckbox).attr("checked", !$(hlCheckbox).attr("checked"));
     959    }
    955960   
    956961    var from;
     
    10351040{
    10361041    var option = document.getElementById("rbOption");
     1042    var optionImage = document.getElementById("rbOptionImage");
     1043   
    10371044    if(rbOn)
    10381045    {
    10391046        option.setAttribute("onclick", "hideText(); showBook(); swapLinkJavascript(false);");
     1047        optionImage.setAttribute("onclick", "hideText(); showBook(); swapLinkJavascript(false);");
     1048        $(option).attr("checked", false);
    10401049    }
    10411050    else
    10421051    {
    10431052        option.setAttribute("onclick", "hideBook(); showText(); swapLinkJavascript(true);");
     1053        optionImage.setAttribute("onclick", "hideBook(); showText(); swapLinkJavascript(true);");
     1054        $(option).attr("checked", true);
    10441055    }
    10451056}
Note: See TracChangeset for help on using the changeset viewer.