Skip to content
Snippets Groups Projects
Commit 233ea36e authored by Armand Bahi's avatar Armand Bahi
Browse files

fix problèmes boutons blockage zone impression

parent 68392db5
No related branches found
No related tags found
No related merge requests found
......@@ -497,9 +497,8 @@ nsVmap.nsToolsManager.Print.prototype.printController.prototype.changeScale = fu
nsVmap.nsToolsManager.Print.prototype.printController.prototype.managePrintZone = function () {
oVmap.log('nsVmap.nsToolsManager.Print.prototype.printController.prototype.managePrintZone');
if (this['currentAction'] === 'print-modifyPrintZone' && this.$scope_["managePrintZoneInProgress"]) {
this.printBox_.unmanagePrintBoxAndLock();
this.printBox_.unlistenMapMovements();
if (this['currentAction'] === 'print-modifyPrintZone' && this.$scope_['managePrintZoneInProgress']) {
this.printBox_.unmanagePrintBox();
this.$scope_["managePrintZoneInProgress"] = false;
} else {
this.$scope_["managePrintZoneInProgress"] = true;
......@@ -515,8 +514,7 @@ nsVmap.nsToolsManager.Print.prototype.printController.prototype.manageComparePri
oVmap.log('nsVmap.nsToolsManager.Print.prototype.printController.prototype.manageComparePrintZone');
if (this['currentAction'] === 'print-modifyPrintZone' && this.$scope_["manageComparePrintZoneInProgress"]) {
this.printBoxCompare_.unmanagePrintBoxAndLock();
this.printBoxCompare_.unlistenMapMovements();
this.printBoxCompare_.unmanagePrintBox();
this.$scope_["manageComparePrintZoneInProgress"] = false;
} else {
//this.printBox_.unmanagePrintBox();
......
......@@ -56,14 +56,14 @@
title="Modification de la zone d'impression sur la carte"
class="btn btn-info btn-sm"
style="margin-top: 10px"
ng-class="{'active': managePrintZoneInProgress, 'disabled': manageComparePrintZoneInProgress}"
ng-class="{'active': managePrintZoneInProgress}"
ng-click="ctrl.managePrintZone()"><span class="glyphicon glyphicon-move"></span></button>
<button type="button"
title="Modification de la zone d'impression sur la carte de comparaison"
ng-show="$root.compare_enabled"
class="btn btn-info btn-sm"
style="margin-top: 10px"
ng-class="{'active': manageComparePrintZoneInProgress, 'disabled': managePrintZoneInProgress}"
ng-class="{'active': manageComparePrintZoneInProgress}"
ng-click="ctrl.manageComparePrintZone()"><span class="glyphicon glyphicon-move"></span></button>
<button type="submit"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment