mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-17 23:44:39 -05:00
Adding extra class for url uploads
This commit is contained in:
parent
71a2d44b5d
commit
a1a8df8053
1 changed files with 3 additions and 2 deletions
|
@ -135,7 +135,7 @@
|
||||||
var self = this;
|
var self = this;
|
||||||
//This is the start point if no image exists
|
//This is the start point if no image exists
|
||||||
$dropzone.find('img.js-upload-target').css({"display": "none"});
|
$dropzone.find('img.js-upload-target').css({"display": "none"});
|
||||||
$dropzone.removeClass('pre-image-uploader').addClass('image-uploader');
|
$dropzone.removeClass('pre-image-uploader image-uploader-url').addClass('image-uploader');
|
||||||
this.removeExtras();
|
this.removeExtras();
|
||||||
this.buildExtras();
|
this.buildExtras();
|
||||||
this.bindFileUpload();
|
this.bindFileUpload();
|
||||||
|
@ -146,6 +146,7 @@
|
||||||
initUrl: function () {
|
initUrl: function () {
|
||||||
var self = this, val;
|
var self = this, val;
|
||||||
this.removeExtras();
|
this.removeExtras();
|
||||||
|
$dropzone.addClass('image-uploader-url').removeClass('pre-image-uploader');
|
||||||
$dropzone.find('.js-fileupload').addClass('right');
|
$dropzone.find('.js-fileupload').addClass('right');
|
||||||
$dropzone.append($cancel);
|
$dropzone.append($cancel);
|
||||||
$dropzone.find('.js-cancel').on('click', function () {
|
$dropzone.find('.js-cancel').on('click', function () {
|
||||||
|
@ -174,7 +175,7 @@
|
||||||
var self = this;
|
var self = this;
|
||||||
// This is the start point if an image already exists
|
// This is the start point if an image already exists
|
||||||
source = $dropzone.find('img.js-upload-target').attr('src');
|
source = $dropzone.find('img.js-upload-target').attr('src');
|
||||||
$dropzone.removeClass('image-uploader').addClass('pre-image-uploader');
|
$dropzone.removeClass('image-uploader image-uploader-url').addClass('pre-image-uploader');
|
||||||
$dropzone.find('div.description').hide();
|
$dropzone.find('div.description').hide();
|
||||||
$dropzone.append($cancel);
|
$dropzone.append($cancel);
|
||||||
$dropzone.find('.js-cancel').on('click', function () {
|
$dropzone.find('.js-cancel').on('click', function () {
|
||||||
|
|
Loading…
Add table
Reference in a new issue