diff --git a/core/modules/edit/js/app.js b/core/modules/edit/js/app.js index 14d76a0..ef27d48 100644 --- a/core/modules/edit/js/app.js +++ b/core/modules/edit/js/app.js @@ -258,6 +258,8 @@ { action: 'save', type: 'submit', classes: 'blue-button', label: Drupal.t('Save') } ], callback: function(action) { + // The message showon on ajax opration . + that.appAjaxMessageShow("Field successfully edit.","success"); // The active modal has been removed. that.model.set('activeModal', null); if (action === 'discard') { @@ -364,6 +366,25 @@ editor.toolbarView.stateChange(data.previous, data.current); }); }, + + /** + * Show Ajax base message (appMessageShow). + * + * Upon the page load, all appropriate editors are initialized and decorated + * (i.e. even before anything of the editing UI becomes visible; even before + * edit mode is enabled). + * + * @param message status (success , error) + */ + + appAjaxMessageShow: function (message, status) { + jQuery('#messages').remove(); + if (status == "success") { + jQuery('#main-wrapper').before('