Commit e8623ae7 authored by catch's avatar catch

Issue #2044505 by bowersox: Fixed Remove empty headers in Views UI <h2 id="views-ajax-title"></h2>.

parent cec07cb1
......@@ -243,7 +243,6 @@
overflow: hidden;
}
.views-ui-dialog #views-ajax-title,
.views-ui-dialog #views-ajax-body {
margin: 0;
padding: 0;
......
......@@ -877,9 +877,10 @@ ul#views-display-menu-tabs li.add ul.action-list li{
margin: 0;
}
.views-ui-dialog #views-ajax-title {
.views-ui-dialog #views-ajax-title h2 {
font-size: 15px;
padding: 8px 13px;
margin: 0;
}
.views-ui-dialog #views-progress-indicator {
......
......@@ -10,7 +10,7 @@
var ajax_title = Drupal.settings.views.ajax.title;
var ajax_body = Drupal.settings.views.ajax.id;
var ajax_popup = Drupal.settings.views.ajax.popup;
$(ajax_title).html(response.title);
$(ajax_title).html('<h2>' + response.title + '</h2>');
$(ajax_body).html(response.output);
$(ajax_popup).dialog('open');
Drupal.attachBehaviors($(ajax_popup), ajax.settings);
......
......@@ -200,7 +200,7 @@ public function form(array $form, array &$form_state) {
'#id' => 'views-ajax-popup',
);
$form['ajax-area']['ajax-title'] = array(
'#markup' => '<h2 id="views-ajax-title"></h2>',
'#markup' => '<div id="views-ajax-title"></div>',
);
$form['ajax-area']['ajax-body'] = array(
'#type' => 'container',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment