Fix bugs in sframe poll and update UI

This commit is contained in:
yflory
2017-10-02 19:02:31 +02:00
parent 66da349ee4
commit 126742a1c3
6 changed files with 328 additions and 1044 deletions

View File

@@ -17,6 +17,7 @@ define(['jquery'], function ($) {
var $title;
exp.setToolbar = function (toolbar) {
$title = toolbar && (toolbar.title || toolbar.pageTitle);
console.log('SET TOOLBAR');
};
exp.getTitle = function () { return exp.title; };
@@ -40,6 +41,7 @@ define(['jquery'], function ($) {
};
metadataMgr.onChange(function () {
console.error('METADATA CHANGE');
var md = metadataMgr.getMetadata();
if ($title) {
$title.find('span.cp-toolbar-title-value').text(md.title || md.defaultTitle);