Fix bugs in sframe poll and update UI
This commit is contained in:
@@ -68,6 +68,7 @@ define(['json.sortify'], function (Sortify) {
|
||||
};
|
||||
var change = function (lazy) {
|
||||
dirty = true;
|
||||
console.error('METADATA CHANGE CALLED');
|
||||
setTimeout(function () {
|
||||
checkUpdate(lazy);
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user