Permalink
Browse files

Property describing current page

  • Loading branch information...
1 parent a27f05e commit 0cddaa93a75c4283a970edc4fc85bc15363d15fc @MasseR committed Apr 7, 2013
Showing with 5 additions and 0 deletions.
  1. +5 −0 code/public/js/doThings.js
@@ -1,4 +1,9 @@
$(document).ready(function() {
+
+ var currentPage = $(".sidebar-nav a[href='#']").asEventStream('click').map(function(ev) {
+ return $(ev.currentTarget).attr('data-target');
+ }).toProperty('students').skipDuplicates();
+
// Initialize (users) datatables with constant data
var modalTemplate = $("#userModalTemplate").text();
var dusers = $("#databox").dataTable( {

0 comments on commit 0cddaa9

Please sign in to comment.