#34294 closed defect (bug) (fixed)
Session storage autosave notice displayed in the wrong place
Reported by: | afercia | Owned by: | iseulde |
---|---|---|---|
Milestone: | 4.4 | Priority: | normal |
Severity: | normal | Version: | 4.3 |
Component: | Administration | Keywords: | has-patch has-screenshots |
Focuses: | ui, javascript | Cc: |
Attachments (4)
Change History (18)
This ticket was mentioned in Slack in #core-editor by afercia. View the logs.
9 years ago
#5
@
9 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
@
9 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
@
9 years ago
Don't think we need to exclude the ones that are already correctly positioned, it makes the query easier.
#10
@
9 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.
9 years ago
#12
@
9 years ago
- Owner set to iseulde
- Resolution set to fixed
- Status changed from new to closed
In 35238:
#13
@
9 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?
In the proposed patch: