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

Added authentication (fixed user now).

File:
1 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    });
Note: See TracChangeset for help on using the changeset viewer.