mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-19 15:22:17 +02:00
Case log form entry: Protection against general form not found when in bridge mode
This commit is contained in:
@@ -111,10 +111,14 @@ $(function() {
|
|||||||
// Update the general form input on submit.
|
// Update the general form input on submit.
|
||||||
// This cannot be "completely" done in the "change" handler above because we don't have an event for when
|
// This cannot be "completely" done in the "change" handler above because we don't have an event for when
|
||||||
// the image has been uploaded and its HTML markup added to the data. The "change" event occurs too early.
|
// the image has been uploaded and its HTML markup added to the data. The "change" event occurs too early.
|
||||||
|
if (null === this._GetGeneralFormElement()) {
|
||||||
|
CombodoJSConsole.Error('CaseLogEntryForm: Could not find the general form element, image upload will NOT work in CKEditor');
|
||||||
|
} else {
|
||||||
this._GetGeneralFormElement().on('submit', function () {
|
this._GetGeneralFormElement().on('submit', function () {
|
||||||
me._UpdateBridgeInput();
|
me._UpdateBridgeInput();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Form buttons
|
// Form buttons
|
||||||
this.element.find(this.js_selectors.cancel_button).on('click', function (oEvent) {
|
this.element.find(this.js_selectors.cancel_button).on('click', function (oEvent) {
|
||||||
|
|||||||
Reference in New Issue
Block a user