// $scope.myOrder.setDir('field2', '');
// HTML: <tr ng-repeat="... | order:myOrder.get()">...</tr>
.service('CrmUiOrderCtrl', function(){
- //
function CrmUiOrderCtrl(defaults){
this.values = defaults;
}
})
// Example for Font Awesome: <button crm-icon="fa-check">Save</button>
- // Example for jQuery UI (deprecated): <button crm-icon="check">Save</button>
+ // Example for jQuery UI (deprecated): <button crm-icon="fa-check">Save</button>
.directive('crmIcon', function() {
return {
restrict: 'EA',
return;
}
if (attrs.crmIcon.substring(0,3) == 'fa-') {
- $(element).prepend('<i class="crm-i ' + attrs.crmIcon + '"></i> ');
+ $(element).prepend('<i class="crm-i ' + attrs.crmIcon + '" aria-hidden="true"></i> ');
}
else {
$(element).prepend('<span class="icon ui-icon-' + attrs.crmIcon + '"></span> ');
// set a custom title (i.e., it has an initial title of "CiviCRM"). See the
// global variables pageTitle and documentTitle.
// Example (same title for both): <h1 crm-page-title>{{ts('Hello')}}</h1>
- // Example (separate document title): <h1 crm-document-title="ts('Hello')" crm-page-title><i class="crm-i fa-flag"></i>{{ts('Hello')}}</h1>
+ // Example (separate document title): <h1 crm-document-title="ts('Hello')" crm-page-title><i class="crm-i fa-flag" aria-hidden="true"></i>{{ts('Hello')}}</h1>
.directive('crmPageTitle', function($timeout) {
return {
scope: {