From 8ad1eb237d08570fe36dc2cd55a7c297a5f943d7 Mon Sep 17 00:00:00 2001 From: Alexander Date: Tue, 18 Sep 2012 06:28:13 +0300 Subject: [PATCH] Update lib/pages/participants.js Easy way to interact with data atribute in jquery --- lib/pages/participants.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pages/participants.js b/lib/pages/participants.js index 2cecc43..b28048a 100644 --- a/lib/pages/participants.js +++ b/lib/pages/participants.js @@ -10,7 +10,7 @@ $.each(courses, function(index,course){ $("#lmycourses").append('
  • '+course.fullname+'

    '+course.shortname+'

  • '); $("#course"+course.id).click(function(){ - localStorage.setItem("current_course",$(this).attr('data-courseid')) + localStorage.setItem("current_course",$(this).data('courseid')) $.mobile.changePage("users.html"); }); });