Skip to content

Commit

Permalink
fix: eslint is clean (except 2 eslint-disable)
Browse files Browse the repository at this point in the history
  • Loading branch information
theus77 committed Jan 10, 2024
1 parent 0e0c9af commit b18cc8d
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ export default class MediaLibrary {
resolve()
mediaLib.#elements.listUploads.removeChild(liUpload)
} else {
reject()
reject(new Error('Unexpected status ' + request.status + ', 201 was expected'))
progressBar.status('Error: ' + request.statusText)
progressBar.progress(100)
progressBar.style('danger')
Expand Down
3 changes: 3 additions & 0 deletions EMS/admin-ui-bundle/assets/js/core/events/addedDomEvent.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ export class AddedDomEvent {
constructor (target) {
this._event = new CustomEvent('emsAddedDomEvent', { target })
this._target = target
}

dispatch () {
document.dispatchEvent(this._event)
}
}
3 changes: 2 additions & 1 deletion EMS/admin-ui-bundle/assets/js/core/helpers/ajaxModal.js
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,8 @@ class AjaxModal {
this.$modal.find(':input').each(function () {
$(this).addClass('ignore-ems-update')
})
new AddedDomEvent(this.modal)
const event = new AddedDomEvent(this.modal)
event.dispatch()
}
if (Object.prototype.hasOwnProperty.call(json, 'modalFooter')) {
this.$modal.find('.ajax-modal-footer').html(json.modalFooter)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
* Licensed under the MIT License
* http://www.opensource.org/licenses/mit-license.php
*/
/* eslint-disable */
(function (factory) {
'use strict'

Expand Down
2 changes: 2 additions & 0 deletions EMS/admin-ui-bundle/assets/js/core/librairies/sortable.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
// >>demos: http://jqueryui.com/sortable/
// >>css.structure: ../../themes/base/sortable.css

/* eslint-disable */

(function (factory) {
if (typeof define === 'function' && define.amd) {
// AMD. Register as an anonymous module.
Expand Down

0 comments on commit b18cc8d

Please sign in to comment.