diff --git a/templates/2k11/admin/media_upload.tpl b/templates/2k11/admin/media_upload.tpl index 87d70aa8..50148fd7 100644 --- a/templates/2k11/admin/media_upload.tpl +++ b/templates/2k11/admin/media_upload.tpl @@ -51,7 +51,7 @@
- +
@@ -61,6 +61,21 @@
+ +
+ + +
+ +
+ + +
diff --git a/templates/2k11/admin/serendipity_editor.js.tpl b/templates/2k11/admin/serendipity_editor.js.tpl index 06e5788e..4623bb41 100644 --- a/templates/2k11/admin/serendipity_editor.js.tpl +++ b/templates/2k11/admin/serendipity_editor.js.tpl @@ -1142,6 +1142,15 @@ $(function() { serendipity.checkInputs(); }); + // Extra function for media db download + $('#imageurl').change(function() { + sourceval = serendipity.getfilename(document.getElementById('imageurl').value); + + if (sourceval.length > 0) { + document.getElementById('imagefilename').value = sourceval; + } + }); + // Dashboard bookmarklet hint $('.s9y_bookmarklet').click(function(e) { e.preventDefault();