X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=ang%2FcrmUi.js;h=0b09c60de711e54d60d6e04d823878b09b16f6ae;hb=647143dcf1994196a64ab206b791e277795190e1;hp=70da3871c882862378f826be1ea53fd9dc4a95dc;hpb=1c0292589f295e7d3babd0f8f5f5b3b6d2cff54a;p=civicrm-core.git diff --git a/ang/crmUi.js b/ang/crmUi.js index 70da3871c8..0b09c60de7 100644 --- a/ang/crmUi.js +++ b/ang/crmUi.js @@ -876,7 +876,7 @@ link: function (scope, element, attrs) { scope.ts = CRM.ts(null); - element.find('.crm-wizard-buttons button').click(function () { + element.find('.crm-wizard-buttons button[ng-click^=crmUiWizardCtrl]').click(function () { // These values are captured inside the click handler to ensure the // positions/sizes of the elements are captured at the time of the // click vs. at the time this directive is initialized. @@ -1047,6 +1047,9 @@ // Sets document title & page title; attempts to override CMS title markup for the latter // WARNING: Use only once per route! + // WARNING: This directive works only if your AngularJS base page does not + // 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):

{{ts('Hello')}}

// Example (separate document title):

{{ts('Hello')}}

.directive('crmPageTitle', function($timeout) {