Skip to content

Commit

Permalink
changed index.js to test swipe event
Browse files Browse the repository at this point in the history
  • Loading branch information
elenaaralla committed Oct 14, 2015
1 parent d1ab481 commit 6116730
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,8 @@ function onDeviceReady() {

$('.itemsInAgenda').css('margin-top','3px');
$('.dayInAgenda').css('border-right-width','1px');

$('.agendaDetail').on( "swiperight", viewEventDetail );
}
});
}
Expand Down Expand Up @@ -156,6 +158,13 @@ $('.itemsInAgenda').on('click', '.agendaTitle', function() {
}
});



function viewEventDetail( event ){
$( event.target ).addClass("highlight");
}


/* click event on title item in titles list */
$('.itemsInAgenda').on('click', '.itemDescription', function() {

Expand Down

0 comments on commit 6116730

Please sign in to comment.