1
0

Drop foreign upload from add media form.

This commit is contained in:
Matthias Mees
2013-06-21 14:30:40 +02:00
parent f7dd8ba630
commit fd2f4ea5bf
2 changed files with 0 additions and 29 deletions

View File

@ -1,7 +1,5 @@
<h2>{$CONST.ADD_MEDIA}</h2>
<div class="image_add_form">{$CONST.ADD_MEDIA_BLAHBLAH}</div>
<form id="uploadform" action="?" method="POST" enctype="multipart/form-data">
<div>
{if $media.max_file_size}
@ -12,23 +10,6 @@
<input name="serendipity[adminModule]" type="hidden" value="images">
<input name="serendipity[adminAction]" type="hidden" value="add">
{$media.form_hidden}
<div id="foreign_upload" class="image_add_foreign">
<div class="form_field clearfix">
{* Probably could use input[type=url] here … *}
<label for="imageurl">{$CONST.ENTER_MEDIA_URL}</label>
<input id="imageurl" class="check_input" name="serendipity[imageurl]" type="text" value="">
</div>
<div class="form_select clearfix">
<label for="serendipity_imageimporttype">{$CONST.ENTER_MEDIA_URL_METHOD}</label>
<select name="serendipity[imageimporttype]">
<option value="image">{$CONST.FETCH_METHOD_IMAGE}</option>
<option value="hotlink">{$CONST.FETCH_METHOD_HOTLINK}</option>
</select>
</div>
<span class="standalone hilite_b">{$CONST.WORD_OR}</span>
</div>
<div id="upload_template" class="hidden">
<div class="form_field clearfix">
@ -68,5 +49,3 @@
</div>
</div>
</form>
<div class="image_add_note">{$CONST.ADD_MEDIA_BLAHBLAH_NOTE}</div>

View File

@ -501,13 +501,6 @@ function checkSave() {
return true;
}
// Hides the foreign upload form if batch upload is used (if more
// images are added)
function hideForeign() {
$('#foreign_upload').hide();
$('#imageurl').val('');
}
// save in which directory the first uploaded files is stored (the default when only inserting one file)
function rememberUploadOptions() {
SetCookie("addmedia_directory", $('#target_directory_2').val());
@ -862,7 +855,6 @@ function highlightComment(id, checkvalue) {
$('#add_upload').click(function(e) {
e.preventDefault();
hideForeign();
addUploadField();
});