Ignore:
Timestamp:
06/26/13 14:43:57 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Added authentication (fixed user now).

Location:
Dev/trunk/src/client/qed-client/ui
Files:
4 added
1 deleted
2 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/ui/MenuLink.js

    r443 r466  
    1 define(['dojo/_base/declare','dijit/MenuItem','../app/Router'
    2 ], function(declare,MenuItem,Router) {
     1define([
     2    "../app/Router",
     3    "dijit/MenuItem",
     4    "dojo/_base/declare",
     5    "dojo/_base/event"
     6], function(Router, MenuItem, declare, event) {
    37    return declare([MenuItem],{
    48        options:{
    59            path: null
    610        },
    7         onClick: function() {
     11        onClick: function(evt) {
    812            if ( this.path ) { Router.go(this.path); }
     13            if ( evt ) { event.stop(evt); }
     14            return false;
    915        }
    1016    });
  • Dev/trunk/src/client/qed-client/ui/templates/MainMenu.html

    r443 r466  
    1212        </div>
    1313        <div class="rftMainMenuButton" data-dojo-type="./MenuBarLink" data-dojo-props="path:'/results'">Results</div>
    14         <div class="rftMainMenuButton" data-dojo-type="./MenuBarLink">Logout</div>
     14        <div class="rftMainMenuButton" data-dojo-type="./SessionMenu"></div>
    1515    </div>
    1616</div>
Note: See TracChangeset for help on using the changeset viewer.