nakarte

Source code of https://map.sikmir.ru (fork)
git clone git://git.sikmir.ru/nakarte
Log | Files | Refs | LICENSE

commit 6d8928dc5c55b1c2d10d5ec97100ab61a129548d
parent a54b1864fd4d79c485e56bd09659fe4aaa4c44a0
Author: Sergej Orlov <wladimirych@gmail.com>
Date:   Sat, 25 Feb 2017 13:45:02 +0300

[print] disable menu item "Save image" while creating image or pdf

Diffstat:
Msrc/lib/leaflet.control.printPages/control.js | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/lib/leaflet.control.printPages/control.js b/src/lib/leaflet.control.printPages/control.js @@ -262,7 +262,7 @@ L.Control.PrintPages = L.Control.extend({ '-', {text: 'Delete', callback: this.removePage.bind(this, page)}, '-', - {text: 'Save image', callback: this.savePageJpg.bind(this, page)} + {text: 'Save image', callback: this.savePageJpg.bind(this, page), disabled: this.makingPdf()} ]; if (this.pages.length > 1) { items.push({text: 'Change order', separator: true});