We currently have various ways in which we describe to the user to press the "Save" button. I have always found this messaging rather unfriendly, although the reminder has proven to be effective. Its often incredibly wordy, and gives the impression that it thinks I am stupid in the fact that it is saying to press the Save button.

Before

saving-changes.png

We could easily make this a lot shorter and more consistenct across core. I don't think we really need to hint at the actual submit button. All we have to remind people of, is the fact that they have unsaved changes. So I propose to change it to:

You have unsaved changes.

This would result in a relatively simple message:

After

Screen Shot 2013-04-21 at 9.21.37 PM.png

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Status: Needs review » Needs work

The last submitted patch, unsaved.changes.patch, failed testing.

Bojhan’s picture

Status: Needs work » Needs review
FileSize
3.17 KB

Fixing tests.

Wim Leers’s picture

Status: Needs review » Needs work

The first two are in JS, the third is in PHP. And in fact the second piece of JS is an override for the first piece if JS, specifically to tailor the text to the use case :)

So:
- the second instance (in block.js) should completely be removed, it'll automatically use the text in the first (in tabledrag.js)
- we should consider having something like Drupal.showUnsavedChangesMessage()

I'll ping nod_.

dawehner’s picture

Status: Needs work » Needs review

One reason why this message existed in the first place in views, was that the view was never actually saved initially. That's not longer true with just one submit button on the views wizard.

+1 for the simplication.

dawehner’s picture

Status: Needs review » Needs work

.

nod_’s picture

What Wim says. The Drupal.theme.tableDragChangedWarning should be removed from block.js entirely.

Better than Drupal.showUnsavedChangesMessage() might be a Drupal.showMessages() or something handling the whole message area (that Drupal.announce() could use maybe?). Good point, I feel it's outside the scope of this issue though.

Bojhan’s picture

Status: Needs work » Needs review
FileSize
3.14 KB

Like this?

nod_’s picture

Status: Needs review » Reviewed & tested by the community

yep :)

Wim Leers’s picture

Go Bojhan!

xjm’s picture

Nice, +1.

webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed and pushed to 8.x. Thanks!

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

Updated issue summary.