Changeset View
Changeset View
Standalone View
Standalone View
webroot/rsrc/js/application/aphlict/behavior-aphlict-dropdown.js
| Show First 20 Lines • Show All 67 Lines • ▼ Show 20 Lines | function(e) { | ||||
| return; | return; | ||||
| } | } | ||||
| if (e.getNode('tag:a')) { | if (e.getNode('tag:a')) { | ||||
| // User clicked a link, just follow the link. | // User clicked a link, just follow the link. | ||||
| return; | return; | ||||
| } | } | ||||
| if (!e.getNode('notification')) { | |||||
| // User clicked somewhere in the dead area of the menu, like the header | |||||
| // or footer. | |||||
| return; | |||||
| } | |||||
| // If the user clicked a notification (but missed a link) and it has a | // If the user clicked a notification (but missed a link) and it has a | ||||
| // primary URI, go there. | // primary URI, go there. | ||||
| var href = e.getNodeData('notification').href; | var href = e.getNodeData('notification').href; | ||||
| if (href) { | if (href) { | ||||
| JX.$U(href).go(); | JX.$U(href).go(); | ||||
| e.kill(); | e.kill(); | ||||
| } | } | ||||
| }); | }); | ||||
| ▲ Show 20 Lines • Show All 59 Lines • Show Last 20 Lines | |||||