Merge pull request #940 from MITx/fix/cdodge/pre-push-tweeks
remove cut/paste error which results in a server error. is not defined ...
This commit is contained in:
@@ -86,6 +86,11 @@ $(document).ready(function() {
|
||||
$('.set-publish-date').bind('click', setSectionScheduleDate);
|
||||
$('.edit-section-start-cancel').bind('click', cancelSetSectionScheduleDate);
|
||||
$('.edit-section-start-save').bind('click', saveSetSectionScheduleDate);
|
||||
|
||||
// modal upload asset dialog. Bind it in the initializer otherwise multiple hanlders will get registered causing
|
||||
// pretty wacky stuff to happen
|
||||
$('.file-input').bind('change', startUpload);
|
||||
$('.upload-modal .choose-file-button').bind('click', showFileSelectionMenu);
|
||||
});
|
||||
|
||||
function showImportSubmit(e) {
|
||||
@@ -304,8 +309,6 @@ function _deleteItem($el) {
|
||||
function showUploadModal(e) {
|
||||
e.preventDefault();
|
||||
$('.upload-modal').show();
|
||||
$('.file-input').bind('change', startUpload);
|
||||
$('.upload-modal .choose-file-button').bind('click', showFileSelectionMenu);
|
||||
$modalCover.show();
|
||||
}
|
||||
|
||||
@@ -358,8 +361,6 @@ function displayFinishedUpload(xhr) {
|
||||
var html = Mustache.to_html(template, resp);
|
||||
$('table > tbody > tr:first').before(html);
|
||||
|
||||
$("tr[data-id='" + resp.url + "'] a.show-xml").toggle(showEmbeddableXML, hideEmbeddableXML);
|
||||
|
||||
}
|
||||
|
||||
function markAsLoaded() {
|
||||
|
||||
@@ -99,7 +99,7 @@
|
||||
</div>
|
||||
<div class="embeddable">
|
||||
<label>Embeddable XML:</label>
|
||||
<input type="text" class="embeddable-xml-input" value='<img src="${asset['url']}"/>'>
|
||||
<input type="text" class="embeddable-xml-input" value='<img src=""/>'>
|
||||
</div>
|
||||
<form class="file-chooser" action="${upload_asset_callback_url}"
|
||||
method="post" enctype="multipart/form-data">
|
||||
|
||||
Reference in New Issue
Block a user