Skip to content
This repository has been archived by the owner on Oct 31, 2023. It is now read-only.

Commit

Permalink
imple delete
Browse files Browse the repository at this point in the history
  • Loading branch information
tnantoka committed Jun 23, 2010
1 parent 801cfef commit abbb6fc
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions script.js
Expand Up @@ -192,12 +192,12 @@ function initHome() {
});

div.find('.deleteButton').bind('tap', function(e) {
$('#wiki5_new h1').html('Copy Entry');
$('#wiki5_new .back').html(title);
$('#wiki5_title').val(title + '-copy');
$('#wiki5_content').val(entries[title]);
$('#wiki5_title').focus();
jQT.goTo('#wiki5_new', 'slideup');
if (confirm('Delete OK?')) {
delete entries[title];
localStorage.entries = JSON.stringify(entries);
initHome();
jQT.goTo('#home', 'slide');
}
});

}
Expand Down
Binary file modified wiki5.wgt
Binary file not shown.

0 comments on commit abbb6fc

Please sign in to comment.