summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--wysiwyg.admin.inc4
-rw-r--r--wysiwyg.admin.js3
2 files changed, 6 insertions, 1 deletions
diff --git a/wysiwyg.admin.inc b/wysiwyg.admin.inc
index 4f4fea3..f3dacf2 100644
--- a/wysiwyg.admin.inc
+++ b/wysiwyg.admin.inc
@@ -219,6 +219,10 @@ function wysiwyg_profile_form($form, &$form_state, $profile) {
',
);
+ $form['toolbar_designer']['change_notification'] = array(
+ '#markup' => '<div class="toolbar-changed-warning messages warning"><span class="warning">*</span>' . t('Changes made to this toolbar will not be saved until the form is submitted.') . '</div>',
+ );
+
$form['toolbar_designer']['#attached']['js'][] = array(
'data' => array('wysiwyg_toolbar' => $toolbar_support),
'type' => 'setting',
diff --git a/wysiwyg.admin.js b/wysiwyg.admin.js
index 5900d06..f5846ae 100644
--- a/wysiwyg.admin.js
+++ b/wysiwyg.admin.js
@@ -6,7 +6,7 @@ Drupal.behaviors.wysiwygToolbarDesigner = {
var settings = settings.wysiwyg_toolbar;
var workspace = $('#wysiwyg-toolbar-designer');
var designArea = $('#toolbar-rows');
- var changeNotification = $('#wysiwyg-toolbar-designer div.warning');
+ var changeNotification = $('#wysiwyg-toolbar-designer div.toolbar-changed-warning');
var availableButtons = $('#toolbar-available-buttons');
var separator = $('.wysiwyg-button-default-separator', availableButtons);
@@ -27,6 +27,7 @@ Drupal.behaviors.wysiwygToolbarDesigner = {
var group = createGroup();
row.append(group);
row.sortable('refresh');
+ changeNotification.fadeIn();
return false;
});
}