diff --git a/src/baw.configuration.tpl.js b/src/baw.configuration.tpl.js index b2d635e1..648e2ddf 100644 --- a/src/baw.configuration.tpl.js +++ b/src/baw.configuration.tpl.js @@ -154,8 +154,8 @@ angular.module('bawApp.configuration', ['url']) minAudioDurationSeconds: 2.0 }, unitConverter: { - precisionSeconds: 3, - precisionHertz: 0 + precisionSeconds: 9, + precisionHertz: 6 } }); \ No newline at end of file diff --git a/src/common/jquery.drawabox.js b/src/common/jquery.drawabox.js index 2e1dc8fa..2e746b64 100644 --- a/src/common/jquery.drawabox.js +++ b/src/common/jquery.drawabox.js @@ -188,6 +188,8 @@ resize: function (event, ui) { contextData.options.boxResizing($newBox); }, stop: function (event, ui) { contextData.options.boxResized($newBox); } }); + // temporary function used for testing a bug + // window.hack = function(left, top) {$newBox.css({left:left, top:top}); contextData.options.boxMoved($newBox)}; $newBox.draggable({ containment: 'parent', drag: function (event, ui) { contextData.options.boxMoving($newBox); }, diff --git a/src/components/directives/bawAnnotationViewer.js b/src/components/directives/bawAnnotationViewer.js index f094a5f5..cda60817 100644 --- a/src/components/directives/bawAnnotationViewer.js +++ b/src/components/directives/bawAnnotationViewer.js @@ -483,37 +483,37 @@ bawds.directive('bawAnnotationViewer', scope.$drawaboxElement.drawabox({ "selectionCallbackTrigger": "mousedown", "newBox": function (element, newBox) { - drawaboxUpdatesModel(scope, null, newBox, DRAWABOX_ACTION_CREATE); console.log("newBox", newBox, false); + drawaboxUpdatesModel(scope, null, newBox, DRAWABOX_ACTION_CREATE); }, "boxSelected": function (element, selectedBox) { - console.log("boxSelected", selectedBox); + //console.log("boxSelected", selectedBox); drawaboxUpdatesModel(scope, scope.model.audioEvents[element[0].annotationViewerIndex], selectedBox, DRAWABOX_ACTION_SELECT, true); }, "boxResizing": function (element, box) { - console.log("boxResizing"); + //console.log("boxResizing"); drawaboxUpdatesModel(scope, scope.model.audioEvents[element[0].annotationViewerIndex], box, DRAWABOX_ACTION_RESIZE_OR_MOVE, true); }, "boxResized": function (element, box) { - console.log("boxResized"); + //console.log("boxResized"); drawaboxUpdatesModel(scope, scope.model.audioEvents[element[0].annotationViewerIndex], box, DRAWABOX_ACTION_RESIZE_OR_MOVE, false); }, "boxMoving": function (element, box) { - console.log("boxMoving"); + //console.log("boxMoving"); drawaboxUpdatesModel(scope, scope.model.audioEvents[element[0].annotationViewerIndex], box, DRAWABOX_ACTION_RESIZE_OR_MOVE, true); }, "boxMoved": function (element, box) { - console.log("boxMoved"); + //console.log("boxMoved"); drawaboxUpdatesModel(scope, scope.model.audioEvents[element[0].annotationViewerIndex], box, DRAWABOX_ACTION_RESIZE_OR_MOVE, false); }, "boxDeleted": function (element, deletedBox) { - console.log("boxDeleted"); + //console.log("boxDeleted"); // TODO: delete index bound watcher... do not change array layout, keep it sparse... // ...but only after server operation is a success drawaboxUpdatesModel(scope, scope.model.audioEvents[element[0].annotationViewerIndex], diff --git a/src/components/services/unitConverter.js b/src/components/services/unitConverter.js index c08001de..ceebb1ee 100644 --- a/src/components/services/unitConverter.js +++ b/src/components/services/unitConverter.js @@ -84,7 +84,7 @@ uc.factory("bawApp.unitConverter", ['conf.constants', function (constants) { } } - console.debug("unitConverter:calculateUnitConversions: unit update calculated successfully"); + //console.debug("unitConverter:calculateUnitConversions: unit update calculated successfully"); return result; }