CRM-20958 - On upgrade, declare created/modified timestamps for case+activity
[civicrm-core.git] / ang / crmUi.js
index 4ea687c32964e87a5d0dad35ac30c3bcb92e454f..ecfe172a99c837a8f2c2919ad9a4881e26e45048 100644 (file)
     .directive('crmUiSelect', function ($parse, $timeout) {
       return {
         require: '?ngModel',
+        priority: 1,
         scope: {
           crmUiSelect: '='
         },
             element.crmSelect2(scope.crmUiSelect || {});
             if (ngModel) {
               element.on('change', refreshModel);
-              $timeout(ngModel.$render);
             }
           }
 
               // If the CMS has already added title markup to the page, use it
               $('h1').not('.crm-container h1').each(function() {
                 if (_.trim($(this).html()) === pageTitle) {
-                  $(this).html(newPageTitle);
+                  $(this).addClass('crm-page-title').html(newPageTitle);
                   $el.hide();
                 }
               });