Skip to content

Commit 39f4316

Browse files
author
Peter Kuma
committed
Fix delete in IE7 and IE8.
A click on the delete button would have effect on all latter items in addition to the selected item. Use Element.clone() instead of cloneNode() when copying the .item template.
1 parent 32353f8 commit 39f4316

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fileshack/static/fileshack/js/views.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ var View = new Class({
2525

2626
initialize: function(model) {
2727
this.model = model;
28-
this.el = $(this.template).cloneNode(true);
28+
this.el = $(this.template).clone(true, false);
2929

3030
var this_ = this;
3131
Array.each(this.attributes, function(attr) {

0 commit comments

Comments
 (0)