Permalink
Browse files

Fix categories not being sortable in IE8. IE8 does not support placeh…

…olders natively and falls back to using the jQuery Placeholder plugin. This sets the placeholder as the input value which did not pass the "if" check correctly. (#321)
  • Loading branch information...
1 parent 826c702 commit 25ca94c8596616f3e779cc670038ebf8530ee76a @haraldpdl haraldpdl committed Aug 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 osCommerce/OM/Core/Site/Admin/Application/Categories/pages/main.php
@@ -119,7 +119,7 @@ function feedDataTable(data) {
var newCell = newRow.insertCell(0);
var categoryColumn = '';
- if ( $('#liveSearchField').val().length < 1 ) {
+ if ( ($('#liveSearchField').val().length < 1) || ($('#liveSearchField').val() == $('#liveSearchField').attr('placeholder')) ) {
categoryColumn += dragIcon + '&nbsp;';
}
categoryColumn += categoryLinkIcon + '&nbsp;<a href="' + categoryLink.replace('CATEGORYID', parseInt(record.id)) + '" class="parent">' + htmlSpecialChars(record.title) + '</a><span style="float: right;">(' + parseInt(record.products) + ')</span>';

0 comments on commit 25ca94c

Please sign in to comment.