Changeset 35095 for main


Ignore:
Timestamp:
2021-04-22T14:51:44+12:00 (3 years ago)
Author:
davidb
Message:

Introduction of param to ssv_execute to control whether or not the browser auto-focuses on the sgvizler-div

File:
1 edited

Legend:

Unmodified
Added
Removed
  • main/trunk/model-sites-dev/eurovision-lod/collect/eurovision/js/dataviz.js

    r35071 r35095  
    121121
    122122
     123var ssv_no_auto_focus = 0;
     124var ssv_auto_focus = 1;
    123125
    124 function ssv_execute(query_text_id)
     126function ssv_execute(auto_focus,query_text_id)
    125127{
    126128    if (query_text_id) {
     
    174176   
    175177    sgvizler2.containerDraw('sgvizler-div');
    176 
    177     var url = window.location.href;
    178     window.location.href = url + "#sgvizler-plot";
    179     history.replaceState(null,null,url);
     178   
     179    if (auto_focus == ssv_auto_focus) {
     180    var url = window.location.href;
     181    window.location.href = url + "#sgvizler-plot";
     182    history.replaceState(null,null,url);
     183    }
    180184}
Note: See TracChangeset for help on using the changeset viewer.