0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-13 22:41:32 -05:00

Merge pull request #882 from cobbspur/urlindex

This commit is contained in:
Hannah Wolfe 2013-09-26 12:35:58 +01:00
commit ea13511cc4

View file

@ -23,8 +23,6 @@
complete: function (result) { complete: function (result) {
var self = this; var self = this;
$dropzone.trigger("uploadsuccess", [result, $dropzone.attr('id')]);
function showImage(width, height) { function showImage(width, height) {
$dropzone.find('img.js-upload-target').attr({"width": width, "height": height}).css({"display": "block"}); $dropzone.find('img.js-upload-target').attr({"width": width, "height": height}).css({"display": "block"});
$dropzone.find('.fileupload-loading').remove(); $dropzone.find('.fileupload-loading').remove();
@ -163,6 +161,7 @@
$dropzone.find('div.description').before($url); $dropzone.find('div.description').before($url);
$dropzone.find('.js-button-accept').on('click', function () { $dropzone.find('.js-button-accept').on('click', function () {
$dropzone.trigger('uploadstart', [$dropzone.attr('id')]);
$dropzone.find('div.description').hide(); $dropzone.find('div.description').hide();
val = $('#uploadurl').val(); val = $('#uploadurl').val();
$dropzone.find('.js-fileupload').removeClass('right'); $dropzone.find('.js-fileupload').removeClass('right');