-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Move DnD widget in a EntityBrowser Widget #5
Conversation
chrfritsch
commented
Apr 26, 2016
- This moves the dnd widget in a Entity Browser Widget
- Makes widget a bit more fancier
- Make the DCX InDesign button work with DnD Widget
|
||
/** | ||
* @file | ||
* Contains \Drupal\dropzonejs\Controller\UploadController. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Meh. Nitpick!
I'd personally would prefer to have this in its own module, e.g. dcx_dropzone_widget as it's not really related to migration.
|
I would prefer to move the Eb Widget to the main dcx_integration module. |
/** | ||
* Prepares variables for dropzone form element. | ||
* | ||
* Default template: dropzonejs.html.twig. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nitpick. nörgel
|
||
if (dropzone.hasClass('is-uploading')) return false; | ||
|
||
dropzone.addClass('is-uploading').removeClass('is-error'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is necessary for state handling of the dropzone widget