Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit 25ca94c8596616f3e779cc670038ebf8530ee76a 1 parent 826c702
@haraldpdl haraldpdl authored
View
2  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>';
Please sign in to comment.
Something went wrong with that request. Please try again.