Merge branch 'temp8' into temp8-223-scheduled-publishing

# Conflicts:
#	src/Umbraco.Web.UI/Umbraco/config/lang/en_us.xml
This commit is contained in:
Mads Rasmussen
2018-10-08 17:49:33 +02:00
129 changed files with 8507 additions and 14540 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -644,24 +644,14 @@ angular.module('umbraco.mocks').
"templateEditor_usedIfAllEmpty": "Will only be used when the field values above are empty",
"templateEditor_usedIfEmpty": "This field will only be used if the primary field is empty",
"templateEditor_withTime": "Yes, with time. Seperator: ",
"translation_assignedTasks": "Tasks assigned to you",
"translation_assignedTasksHelp": " The list below shows translation tasks <strong>assigned to you</strong>. To see a detailed view including comments, click on 'Details' or just the page name. You can also download the page as XML directly by clicking the 'Download Xml' link. <br/> To close a translation task, please go to the Details view and click the 'Close' button. ",
"translation_closeTask": "close task",
"translation_details": "Translation details",
"translation_downloadAllAsXml": "Download all translation tasks as xml",
"translation_downloadTaskAsXml": "Download xml",
"translation_DownloadXmlDTD": "Download xml DTD",
"translation_fields": "Fields",
"translation_includeSubpages": "Include subpages",
"translation_mailBody": " Hi %0% This is an automated mail to inform you that the document '%1%' has been requested for translation into '%5%' by %2%. Go to http://%3%/translation/details.aspx?id=%4% to edit. Or log into Umbraco to get an overview of your translation tasks http://%3% Have a nice day! Cheers from the Umbraco robot ",
"translation_mailSubject": "[%0%] Translation task for %1%",
"translation_noTranslators": "No translator users found. Please create a translator user before you start sending content to translation",
"translation_ownedTasks": "Tasks created by you",
"translation_ownedTasksHelp": " The list below shows pages <strong>created by you</strong>. To see a detailed view including comments, click on 'Details' or just the page name. You can also download the page as XML directly by clicking the 'Download Xml' link. To close a translation task, please go to the Details view and click the 'Close' button. ",
"translation_pageHasBeenSendToTranslation": "The page '%0%' has been send to translation",
"translation_pageHasBeenSendToTranslation": "The page '%0%' has been send to translation",
"translation_sendToTranslate": "Send the page '%0%' to translation",
"translation_taskAssignedBy": "Assigned by",
"translation_taskOpened": "Task opened",
"translation_totalWords": "Total words",
"translation_translateTo": "Translate to",
"translation_translationDone": "Translation completed.",

View File

@@ -22,6 +22,20 @@ var app = angular.module("umbraco.preview", ['umbraco.resources', 'umbraco.servi
// signalr hub
var previewHub = $.connection.previewHub;
// visibility tracking
var dirtyContent = false;
var visibleContent = true;
document.addEventListener('visibilitychange', function () {
visibleContent = !document.hidden;
if (visibleContent && dirtyContent) {
dirtyContent = false;
console.log("Visible, reloading.")
var iframeDoc = (iframe.contentWindow || iframe.contentDocument);
iframeDoc.location.reload();
}
});
previewHub.client.refreshed = function (message, sender) {
console.log("Notified by SignalR preview hub (" + message + ").");
@@ -30,6 +44,13 @@ var app = angular.module("umbraco.preview", ['umbraco.resources', 'umbraco.servi
return;
}
if (!visibleContent) {
console.log("Not visible, will reload.");
dirtyContent = true;
return;
}
console.log("Reloading.");
var iframeDoc = (iframe.contentWindow || iframe.contentDocument);
iframeDoc.location.reload();
};