Merge pull request #2649 from CatoTH/bugfix-disabling-inline-editing

Bugfix disabling inline editing
This commit is contained in:
Emanuel Schütze 2016-11-23 22:03:31 +01:00 committed by GitHub
commit 14d00cc404
2 changed files with 12 additions and 1 deletions

View File

@ -315,6 +315,17 @@ angular.module('OpenSlidesApp.motions.motionservices', ['OpenSlidesApp.motions',
$content.on("mouseover", ".line-numbers-outside .os-line-number.selectable", obj.mouseOver);
$content.on("mouseover", ".motion-text-original", obj.startCreating);
$scope.$watch(function () {
return $scope.change_recommendations.length;
}, function () {
if (obj.mode == MODE_INACTIVE || obj.mode == MODE_SELECTING_FROM) {
// Recalculate the affected lines so we cannot select lines affected by a recommendation
// that has just been created
$(".motion-text-original .os-line-number").removeClass("selected selectable");
obj.startCreating();
}
});
$scope.$on("$destroy", function () {
obj.destroy();
});

View File

@ -1093,7 +1093,7 @@ angular.module('OpenSlidesApp.motions.site', [
// open edit dialog
$scope.openDialog = function (motion) {
if ($scope.inlineEditing.active) {
$scope.disableInlineEditing();
$scope.inlineEditing.disable();
}
ngDialog.open(MotionForm.getDialog(motion));
};