frontend/js/components/dialog.js in trestle-0.9.2 vs frontend/js/components/dialog.js in trestle-0.9.3
- old
+ new
@@ -126,9 +126,12 @@
hide () {
this.$el.modal('hide')
}
}
+// Expose showError as Trestle.Dialog.showError
+Dialog.showError = showError
+
$(document).on('click', '[data-behavior="dialog"]', function (e) {
e.preventDefault()
const url = $(this).data('url') || $(this).attr('href')