#34294 closed defect (bug) (fixed)
Session storage autosave notice displayed in the wrong place
| Reported by: | afercia | Owned by: | iseulde |
|---|---|---|---|
| Priority: | normal | Milestone: | 4.4 |
| Component: | Administration | Version: | 4.3 |
| Severity: | normal | Keywords: | has-patch has-screenshots |
| Cc: | Focuses: | ui, javascript |
Attachments (4)
Change History (18)
This ticket was mentioned in Slack in #core-editor by afercia. View the logs.
11 years ago
#5
@
11 years ago
As per @iseulde suggestion, will try to use $( '#post' ).before() in a new patch, Side note, will try to do the same for the back-compat in common.js introduced in [32974], will open a separate ticket.
#6
@
11 years ago
Refreshed patch to use better jQuery, previous implementation:
$( '.wrap h1' ).first().after( $notice.addClass( 'notice-warning' ).show() );
new one:
$( '#post' ).before( $notice.addClass( 'notice-warning' ).show() );
Any thoughts and testing more than welcome :)
#7
@
11 years ago
Don't think we need to exclude the ones that are already correctly positioned, it makes the query easier.
#10
@
11 years ago
I'd propose to split the issues and keep this ticket just for the session storage notice. Since it's used when editing posts, I think we can rely on the presence of $( '#post' ) ? Any thoughts welcome.
This ticket was mentioned in Slack in #core-editor by afercia. View the logs.
11 years ago
#13
@
11 years ago
The current patch breaks backwards compatibility with plug-ins using .below-h2 class to keep alerts in-line.
Since we're using H1 tags for pages and not H2 the class .below-h2 doesn't make much sense - but I just wanted to raise the above compatibility issue in case the break was unintentional. We could exclude divs with .inline or .below-h2.
Any thoughts?
![(please configure the [header_logo] section in trac.ini)](/chrome/site/your_project_logo.png)



In the proposed patch: