Updated application.
This commit is contained in:
@@ -213,12 +213,18 @@
|
||||
Common.Analytics.trackEvent("Load", "Complete");
|
||||
}
|
||||
function onEditorPermissions(params) {
|
||||
if (params.asc_getCanBranding() && (typeof config.customization == "object") && config.customization && config.customization.logoUrlEmbedded) {
|
||||
$("#header-logo").css({
|
||||
"background-image": 'url("' + config.customization.logoUrlEmbedded + '")',
|
||||
"background-position": "0 center",
|
||||
"background-repeat": "no-repeat"
|
||||
});
|
||||
if (params.asc_getCanBranding() && (typeof config.customization == "object") && config.customization && config.customization.logo) {
|
||||
var logo = $("#header-logo");
|
||||
if (config.customization.logo.imageEmbedded) {
|
||||
logo.css({
|
||||
"background-image": 'url("' + config.customization.logo.imageEmbedded + '")',
|
||||
"background-position": "0 center",
|
||||
"background-repeat": "no-repeat"
|
||||
});
|
||||
}
|
||||
if (config.customization.logo.url) {
|
||||
logo.attr("href", config.customization.logo.url);
|
||||
}
|
||||
}
|
||||
}
|
||||
function showMask() {
|
||||
@@ -450,7 +456,7 @@
|
||||
updateEmbedCode();
|
||||
api && api.asc_enableKeyEvents(true);
|
||||
});
|
||||
$("#page-number").on("keypress", function (e) {
|
||||
$("#page-number").on("keyup", function (e) {
|
||||
if (e.keyCode == 13) {
|
||||
var newPage = parseInt($("#page-number").val());
|
||||
if (newPage > maxPages) {
|
||||
@@ -464,6 +470,9 @@
|
||||
}
|
||||
}
|
||||
});
|
||||
$("#page-number").on("focusout", function (e) {
|
||||
api && api.asc_enableKeyEvents(true);
|
||||
});
|
||||
$("#id-btn-fullscreen").on("click", function () {
|
||||
openLink(embedConfig.fullscreenUrl);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user