eportfolio reordering bug
If you add a submission to an eportfolio's content and then try to drag that submission page to somewhere else on the page, suddenly the page is full of white space and the draggable jumps to the bottom of the page. fixes #3734 Change-Id: I3397519e30b2dfa5e63e2cb9934c8310186b05b4 Reviewed-on: https://gerrit.instructure.com/2184 Tested-by: Hudson <hudson@instructure.com> Reviewed-by: Bracken Mosbacker <bracken@instructure.com>
This commit is contained in:
parent
ad438b6234
commit
5b0b598c67
|
@ -46,7 +46,7 @@
|
|||
data[name + '[section_type]'] = "submission";
|
||||
data[name + '[submission_id]'] = $(this).getTemplateData({textValues: ['submission_id']}).submission_id;
|
||||
} else if(section_type == "upload") {
|
||||
data[name + '[section_type]'] = "upload";
|
||||
data[name + '[section_type]'] = "attachment";
|
||||
data[name + '[attachment_id]'] = $(this).getTemplateData({textValues: ['attachment_id']}).attachment_id;
|
||||
}
|
||||
}
|
||||
|
@ -236,10 +236,16 @@
|
|||
helper: 'clone',
|
||||
axis: 'y',
|
||||
start: function(event, ui) {
|
||||
$(ui.item).find("textarea").editorBox('destroy');
|
||||
var $item = $(ui.item);
|
||||
if($item.getTemplateData({textValues: ['section_type']}).section_type == 'rich_text') {
|
||||
$item.find("textarea").editorBox('destroy');
|
||||
}
|
||||
},
|
||||
stop: function(event, ui) {
|
||||
$(ui.item).find("textarea").editorBox();
|
||||
var $item = $(ui.item);
|
||||
if($item.getTemplateData({textValues: ['section_type']}).section_type == 'rich_text') {
|
||||
$item.find("textarea").editorBox();
|
||||
}
|
||||
}
|
||||
});
|
||||
$("#page_content").delegate('.cancel_content_button', 'click', function(event) {
|
||||
|
|
Loading…
Reference in New Issue