~nigelbabu/summit/fix-today

« back to all changes in this revision

Viewing changes to summit/schedule/templates/schedule/schedule.html

  • Committer: Dave Walker (Daviey)
  • Author(s): Michael Hall
  • Date: 2010-10-20 16:33:11 UTC
  • mfrom: (50.1.2 trunk)
  • Revision ID: davewalker@ubuntu.com-20101020163311-9sbtkp2b7crx7281
Re-enabled the 'hide talks that aren't for me' option, placing the link in the new sub-nav bar

Show diffs side-by-side

added added

removed removed

Lines of Context:
39
39
    var lnk = document.createElement("a");
40
40
    lnk.href = "#";
41
41
    lnk.appendChild(document.createTextNode("Hide talks that aren't for me"));
 
42
    lnk.className = 'sub-nav-item';
42
43
    lnk.onclick = function(e) {
43
44
        var whoami = document.getElementById("whoami");
44
45
        if (!whoami) return;
65
66
        e.preventDefault();
66
67
        return false;
67
68
    }
68
 
    document.getElementById("body").appendChild(lnk);
 
69
    document.getElementById("sub-nav").appendChild(lnk);
69
70
};
70
71
 
71
72
(function(i) {var u =navigator.userAgent;var e=/*@cc_on!@*/false; var st =
75
76
document.addEventListener("DOMContentLoaded",i,false); } else if(e){     (
76
77
function(){var t=document.createElement('doc:rdy');try{t.doScroll('left');
77
78
i();t=null;}catch(e){st(arguments.callee,0);}})();}else{window.onload=i;}})(addMySessionsLink);
 
79
 
78
80
{% endif %}
79
81
</script>
80
82
{% endif %}
81
83
{% if schedule.nextonly or autoreload %}
82
84
  <script language="JavaScript">
 
85
 
83
86
function timedRefresh()
84
87
{
85
88
    var timeoutPeriod = 5*60*1000; // 5 minutes