equal
deleted
inserted
replaced
156 if ( noticeContainer.length ) { |
156 if ( noticeContainer.length ) { |
157 noticeContainer.slideUp( 'fast' ); |
157 noticeContainer.slideUp( 'fast' ); |
158 } |
158 } |
159 } else { |
159 } else { |
160 if ( ! noticeContainer.length ) { |
160 if ( ! noticeContainer.length ) { |
161 noticeContainer = $( '<div class="media-widget-embed-notice notice notice-error notice-alt"></div>' ); |
161 noticeContainer = $( '<div class="media-widget-embed-notice notice notice-error notice-alt" role="alert"></div>' ); |
162 noticeContainer.hide(); |
162 noticeContainer.hide(); |
163 embedLinkView.views.parent.$el.prepend( noticeContainer ); |
163 embedLinkView.views.parent.$el.prepend( noticeContainer ); |
164 } |
164 } |
165 noticeContainer.empty(); |
165 noticeContainer.empty(); |
166 noticeContainer.append( $( '<p>', { |
166 noticeContainer.append( $( '<p>', { |