Skip to content

Commit

Permalink
Item10364: fixes for row dragging on IE
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@10723 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
CrawfordCurrie authored and CrawfordCurrie committed Feb 17, 2011
1 parent ca85af9 commit 0156d57
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions EditRowPlugin/pub/System/EditRowPlugin/erp_src.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
onClose: function(dateText) {
original.reset.apply(form, [settings, original]);
$(original).addClass( settings.cssdecoration );
},
}
});
}});

Expand Down Expand Up @@ -174,8 +174,7 @@
type: "POST",
data: p.erp_data,
success: function(response) {
container.html(response);
container.css("cursor", "auto");
container.replaceWith($(response));
},
error: function() {
dragee.fadeTo("fast", 1.0);
Expand All @@ -188,12 +187,16 @@
// constrain to the container
containment: tr.closest("tbody,thead,table"),
axis: 'y',
appendTo: 'body',
helper: function(event) {
var helper = $(event.target).closest('tr').clone();
return $('<div><table></table></div>')
var tr = $(event.target).closest('tr');
var helper = tr.clone();
var dv = $('<div><table></table></div>')
.find('table')
.append(helper.addClass("drag-helper"))
.end();
dv.css("margin-left", tr.offset().left + "px");
return dv;
},
start: function(event, ui) {
dragee = $(this);
Expand Down

0 comments on commit 0156d57

Please sign in to comment.