>><table id="payInvoicesTable" ng-show="payInvoices" class="table table-bordered table-hover table-list"> >> <thead data-search:table-header data-table="payInvoicesTable" data-search="search()"> >> >> </thead> >> <tbody> >> <tr ng-repeat="result in payInvoices" ng-form="payInvoicesRow"> >> <td> >> <input type="checkbox" ng-model="result.isToBePaid" >> data-no:dirty-check >> ng-change="payChange(result)" /> >> </td> >> <td> >> <a href="javascript:void(0);"><span ng-click="drillDown(result.invoice_No)">{{result.invoice_No}}</span></a> >> </td> >> <td> >> {{result.descrip}} >> </td> >> <td> >> {{result.dateCreated |date: 'medium'}} >> </td> >> <td> >> <span ng-class="{'negative-amount' : result.invoiceBalance < 0}">{{result.invoiceBalance | currency}}</span> >> </td> >> <td> >> <input type="number" name="payment" ng-model="result.payment" id="payment" >> ng-disabled="!result.isToBePaid" >> ng-class="{'negative-amount' : result.payment < 0}" >> min="0" >> data-no:dirty-check >> data-sm:number placeholder=" 000.00" >> data-sm:number-format data-accuracy="2" /> >> <div class="field-validation-error"> >> <span ng-show="payInvoicesRow.payment.$error.min">Payment should not be negative.</span> >> </div> >> </td> >> </tr> >> </tbody> >> <tfoot> >> <tr> >> <td class="col-md-1"></td> >> <td class="col-md-2"></td> >> <td class="col-md-3"></td> >> <td class="col-md-3">@String.Format(Labels.totalX, ":")</td> >> <td class="col-md-1"><span ng-class="{'negative-amount': total('invoiceBalance') < 0}">{{total('invoiceBalance')|currency}}</span></td> >> <td class="col-md-2">{{total('payment')|currency}}</td> >> </tr> >> </tfoot> >> </table>>>
>><tr style='-moz-user-select: none; -webkit-user-select: none; -ms-user-select:none; user-select:none;'> >> <th ng-repeat="column in table.columns" ng-click="sort(column)"> >> {{column.displayName == undefined || column.displayName == ''?column.name:column.displayName}} >> <span class="pull-right" href="#" ng-show="column.name === table.sort"> >> <i ng-class="{'icon-chevron-down': table.dir === 'asc', 'icon-chevron-up': table.dir === 'desc'}"></i> >> </span> >> </th> >></tr>>>
(function () { 'use strict'; var app = angular.module('sysMgrApp'); app.directive('searchTableHeader', [function () { return { restrict: 'A', replace: false, scope: { table: '=', search: '&', }, controller: ['$scope', function ($scope) { $scope.sort = function (column) { if ($scope.table.sort === column.name) { $scope.table.dir = $scope.table.dir === 'asc' ? 'desc' : 'asc'; } else { $scope.table.sort = column.name; $scope.table.dir = 'asc'; } $scope.search(); }; }], templateUrl: '/app/templates/searchTableHeader' }; }]); })();I'll look closer in DevTools (did you mean inspect elements?). Attached is the header's info in inspect elements. What is strange is that each column title has extra line above. May be this is what is causing my grief?