projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
CRM-20958 - On upgrade, declare created/modified timestamps for case+activity
[civicrm-core.git]
/
ang
/
crmUi.js
diff --git
a/ang/crmUi.js
b/ang/crmUi.js
index 985edc291c32b8117e7d946f43c63e4b2a0e06e9..ecfe172a99c837a8f2c2919ad9a4881e26e45048 100644
(file)
--- a/
ang/crmUi.js
+++ b/
ang/crmUi.js
@@
-1002,22
+1002,16
@@
scope: {
crmDocumentTitle: '='
},
scope: {
crmDocumentTitle: '='
},
- limit: 'ae',
link: function(scope, $el, attrs) {
function update() {
$timeout(function() {
var newPageTitle = _.trim($el.html()),
link: function(scope, $el, attrs) {
function update() {
$timeout(function() {
var newPageTitle = _.trim($el.html()),
- newDocumentTitle = scope.crmDocumentTitle || $el.text(),
- cls = $el.attr('class').split(' '),
- classes = _.filter(cls, function(c) {
- return c.indexOf('ng-') !== 0;
- });
- classes.push('crm-page-title');
+ newDocumentTitle = scope.crmDocumentTitle || $el.text();
document.title = $('title').text().replace(documentTitle, newDocumentTitle);
// 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) {
document.title = $('title').text().replace(documentTitle, newDocumentTitle);
// 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).addClass(
classes.join(' ')
).html(newPageTitle);
+ $(this).addClass(
'crm-page-title'
).html(newPageTitle);
$el.hide();
}
});
$el.hide();
}
});