mirror of
https://github.com/apache/zeppelin
synced 2026-05-24 09:38:26 +00:00
fix bugs for timer saver
This commit is contained in:
parent
444ec6ded2
commit
3612f563d5
1 changed files with 6 additions and 4 deletions
|
|
@ -129,15 +129,15 @@ function ParagraphCtrl($scope, $rootScope, $route, $window, $routeParams, $locat
|
|||
|
||||
var initializeDefault = function(config) {
|
||||
var forms = $scope.paragraph.settings.forms;
|
||||
|
||||
|
||||
if (!config.colWidth) {
|
||||
config.colWidth = 12;
|
||||
}
|
||||
|
||||
|
||||
if (config.enabled === undefined) {
|
||||
config.enabled = true;
|
||||
}
|
||||
|
||||
|
||||
for (var idx in forms) {
|
||||
if (forms[idx]) {
|
||||
if (forms[idx].options) {
|
||||
|
|
@ -599,7 +599,9 @@ function ParagraphCtrl($scope, $rootScope, $route, $window, $routeParams, $locat
|
|||
var session = editor.getSession();
|
||||
var dirtyText = session.getValue();
|
||||
$scope.dirtyText = dirtyText;
|
||||
$scope.$broadcast('startSaveTimer');
|
||||
//the saveTimer is not be invoked with this statement correctly
|
||||
//$scope.$broadcast('startSaveTimer');
|
||||
$scope.startSaveTimer();
|
||||
setParagraphMode(session, dirtyText, editor.getCursorPosition());
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue