X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=ang%2FcrmUi.js;h=ed24630f391980df9672bbfe209a19bf3c19bfc0;hb=c63f9bfb5fdfcc72a26de1b0841a77489e4a6e1e;hp=e0d26b1a2ff4b32683f59bffada8e24053e2de00;hpb=79cf1116648cc4c80dd7670de144ebcdd1258678;p=civicrm-core.git diff --git a/ang/crmUi.js b/ang/crmUi.js index e0d26b1a2f..ed24630f39 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -6,7 +6,7 @@ angular.module('crmUi', []) // example
...content...
- // WISHLIST: crmCollapsed should support two-way/continous binding + // WISHLIST: crmCollapsed should support two-way/continuous binding .directive('crmUiAccordion', function() { return { scope: { @@ -64,7 +64,7 @@ // Simple wrapper around $.crmDatepicker. // example with no time input: - // example with custom date format: + // example with custom date format: .directive('crmUiDatepicker', function () { return { restrict: 'AE', @@ -361,31 +361,13 @@ // Example: // Save + // Example for Font Awesome: + // Example for jQuery UI (deprecated): .directive('crmIcon', function() { return { restrict: 'EA', scope: {}, link: function (scope, element, attrs) { - $(element).prepend(' '); + if (attrs.crmIcon.substring(0,3) == 'fa-') { + $(element).prepend(' '); + } + else { + $(element).prepend(' '); + } if ($(element).is('button')) { $(element).addClass('crm-button'); }