diff options
-rw-r--r-- | inc/media.php | 2 | ||||
-rw-r--r-- | lib/scripts/fileuploaderextended.js | 34 |
2 files changed, 18 insertions, 18 deletions
diff --git a/inc/media.php b/inc/media.php index f5099c1d5..16e3c0074 100644 --- a/inc/media.php +++ b/inc/media.php @@ -1078,7 +1078,7 @@ function media_file_diff($image, $l_rev, $r_rev, $ns, $auth, $fromajax){ if (!$fromajax) { $form = new Doku_Form(array( - 'action' => media_managerURL(array(), '&'), + 'action' => media_managerURL(array(), '&'), 'method' => 'get', 'id' => 'mediamanager__form_diffview', 'class' => 'diffView' diff --git a/lib/scripts/fileuploaderextended.js b/lib/scripts/fileuploaderextended.js index 3481bbc3e..f92bdbc49 100644 --- a/lib/scripts/fileuploaderextended.js +++ b/lib/scripts/fileuploaderextended.js @@ -76,24 +76,24 @@ qq.FileUploaderExtended = function(o){ listElement: null, template: '<div class="qq-uploader">' + - '<div class="qq-upload-drop-area"><span>' + LANG.media_drop + '</span></div>' + - '<div class="qq-upload-button">' + LANG.media_select + '</div>' + - '<ul class="qq-upload-list"></ul>' + - '<div class="qq-action-container">' + - ' <input class="qq-upload-action button" type="submit" value="' + LANG.media_upload_btn + '" id="mediamanager__upload_button">' + - ' <label class="qq-overwrite-check"><input type="checkbox" value="1" name="ow" class="dw__ow"> <span>' + LANG.media_overwrt + '</span></label>' + - '</div>' + - '</div>', + '<div class="qq-upload-drop-area"><span>' + LANG.media_drop + '</span></div>' + + '<div class="qq-upload-button">' + LANG.media_select + '</div>' + + '<ul class="qq-upload-list"></ul>' + + '<div class="qq-action-container">' + + ' <input class="qq-upload-action button" type="submit" value="' + LANG.media_upload_btn + '" id="mediamanager__upload_button">' + + ' <label class="qq-overwrite-check"><input type="checkbox" value="1" name="ow" class="dw__ow"> <span>' + LANG.media_overwrt + '</span></label>' + + '</div>' + + '</div>', // template for one item in file list fileTemplate: '<li>' + - '<span class="qq-upload-file hidden"></span>' + - ' <input class="qq-upload-name-input edit" type="text" value="" />' + - ' <span class="qq-upload-spinner hidden"></span>' + - ' <span class="qq-upload-size"></span>' + - ' <a class="qq-upload-cancel" href="#">' + LANG.media_cancel + '</a>' + - ' <span class="qq-upload-failed-text error">Failed</span>' + - '</li>', + '<span class="qq-upload-file hidden"></span>' + + ' <input class="qq-upload-name-input edit" type="text" value="" />' + + ' <span class="qq-upload-spinner hidden"></span>' + + ' <span class="qq-upload-size"></span>' + + ' <a class="qq-upload-cancel" href="#">' + LANG.media_cancel + '</a>' + + ' <span class="qq-upload-failed-text error">Failed</span>' + + '</li>', classes: { // used to get elements from templates @@ -239,9 +239,9 @@ qq.extend(qq.UploadHandlerForm.prototype, { var nameInput = qq.toElement('<input name="mediaid" value="' + fileName + '" type="text">'); form.appendChild(nameInput); - var checked = jQuery('.dw__ow').attr('checked'); + var checked = jQuery('.dw__ow').attr('checked'); var owCheckbox = jQuery('.dw__ow').clone(); - owCheckbox.attr('checked', checked); + owCheckbox.attr('checked', checked); jQuery(form).append(owCheckbox); var self = this; |