From 0573501210375898c108b8bfa0d2fb5e97a43274 Mon Sep 17 00:00:00 2001 From: Adrian Kosmaczewski Date: Tue, 1 May 2012 21:16:39 +0200 Subject: [PATCH] Solved a weird bug --- jQuery Mobile/todoapp/app.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jQuery Mobile/todoapp/app.js b/jQuery Mobile/todoapp/app.js index af5296b..3d844c5 100644 --- a/jQuery Mobile/todoapp/app.js +++ b/jQuery Mobile/todoapp/app.js @@ -59,7 +59,8 @@ var MyTaskListApp = function () { list.append(newLi); } - list.listview('refresh'); + // The 'true' parameter is required for the inset effect to be applied + list.listview('refresh', true); $('#counter').html(tasks.length + ' tasks'); };