Skip to content
Browse files

imple delete

  • Loading branch information...
1 parent 801cfef commit abbb6fc885932278c9109a2c0f16c90ae2906cdc tnantoka committed Jun 23, 2010
Showing with 6 additions and 6 deletions.
  1. +6 −6 script.js
  2. BIN wiki5.wgt
View
12 script.js
@@ -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');
+ }
});
}
View
BIN wiki5.wgt
Binary file not shown.

0 comments on commit abbb6fc

Please sign in to comment.
Something went wrong with that request. Please try again.