[PE] Added api event for starting demonstration.
This commit is contained in:
parent
c804638de6
commit
5dbd3d9857
|
@ -1469,6 +1469,13 @@ define([
|
|||
}
|
||||
};
|
||||
Common.util.Shortcuts.delegateShortcuts({shortcuts:keymap});
|
||||
|
||||
var onApiStartDemonstration = function() {
|
||||
if (me.slidesCount>0) {
|
||||
Common.NotificationCenter.trigger('preview:start', 0);
|
||||
}
|
||||
};
|
||||
|
||||
/** coauthoring end **/
|
||||
|
||||
var onApiCountPages = function(count) {
|
||||
|
@ -1592,6 +1599,7 @@ define([
|
|||
me.api.asc_registerCallback('asc_onUpdateThemeIndex', _.bind(onApiUpdateThemeIndex, me));
|
||||
me.api.asc_registerCallback('asc_onLockDocumentTheme', _.bind(onApiLockDocumentTheme, me));
|
||||
me.api.asc_registerCallback('asc_onUnLockDocumentTheme', _.bind(onApiUnLockDocumentTheme, me));
|
||||
me.api.asc_registerCallback('asc_onStartDemonstration', _.bind(onApiStartDemonstration));
|
||||
}
|
||||
|
||||
return me;
|
||||
|
|
Loading…
Reference in a new issue