Skip to content

Commit 91b1944

Browse files
authored
Backend: removed invalid "name" element, removed redundant nobr spans, added data-column-id to grids (#3927)
1 parent 3f0cb73 commit 91b1944

File tree

3 files changed

+3
-5
lines changed
  • app
    • code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer
    • design/adminhtml/default/default/template/widget
  • skin/adminhtml/default/default

3 files changed

+3
-5
lines changed

app/code/core/Mage/Adminhtml/Block/Widget/Grid/Column/Renderer/Abstract.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,7 @@ public function renderHeader()
124124
if ($this->getColumn()->getDir()) {
125125
$className = 'sort-arrow-' . $dir;
126126
}
127-
$out = '<a href="#" name="' . $this->getColumn()->getId() . '" title="' . $nDir
128-
. '" class="' . $className . '"><span class="sort-title">'
127+
$out = '<a href="#" title="' . $nDir . '" class="' . $className . '"><span class="sort-title">'
129128
. $this->escapeHtml($this->getColumn()->getHeader()) . '</span></a>';
130129
} else {
131130
$out = $this->escapeHtml($this->getColumn()->getHeader());

app/design/adminhtml/default/default/template/widget/grid.phtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ $numColumns = count($this->getColumns());
114114
<?php if ($this->getHeadersVisibility()): ?>
115115
<tr class="headings">
116116
<?php foreach ($this->getColumns() as $_column): ?>
117-
<th<?php echo $_column->getHeaderHtmlProperty() ?>><span class="nobr"><?php echo $_column->getHeaderHtml() ?></span></th>
117+
<th<?php echo $_column->getHeaderHtmlProperty() ?> data-column-id="<?php echo $_column->getId() ?>"><?php echo $_column->getHeaderHtml() ?></th>
118118
<?php endforeach ?>
119119
</tr>
120120
<?php endif ?>

skin/adminhtml/default/default/boxes.css

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,10 +159,9 @@ table.actions td { vertical-align:top; }
159159

160160
/* Grid - Headings */
161161
.grid tr.headings { background:url(images/sort_row_bg.gif) 0 50% repeat-x; }
162-
.grid tr.headings th { border-width:1px; border-color:#f9f9f9 #d1cfcf #f9f9f9 #f9f9f9; border-style:solid; padding-top:1px; padding-bottom:0; font-size:.9em; }
162+
.grid tr.headings th { border-width:1px; border-color:#f9f9f9 #d1cfcf #f9f9f9 #f9f9f9; border-style:solid; padding-top:1px; padding-bottom:0; font-size:.9em; white-space:nowrap;}
163163
.grid tr.headings th.last { border-right:0; }
164164
.grid tr.headings th.no-link { /* Grid th with no sorting functionality */ padding-top:2px; padding-bottom:1px; color:#67767e; }
165-
.grid tr.headings th span.nobr { display:block; /* FF3 fix */ }
166165
.grid tr.headings th a { display:block; padding:2px 4px 1px 0; color:#2d444f; text-decoration:none; }
167166
.grid tr.headings th a:hover { color:#d85909; text-decoration:none; }
168167
.grid tr.headings th a.sort-arrow-desc,

0 commit comments

Comments
 (0)