diff --git a/mindplot/src/main/javascript/Designer.js b/mindplot/src/main/javascript/Designer.js index 8b7c4368..ea9b2e14 100644 --- a/mindplot/src/main/javascript/Designer.js +++ b/mindplot/src/main/javascript/Designer.js @@ -82,32 +82,14 @@ mindplot.Designer = new Class(/** @lends Designer */{ * @private */ _registerWheelEvents: function () { - var workspace = this._workspace; + var zoomFactor = 1.006; var me = this; // Zoom In and Zoom Out must active event $(document).on('mousewheel', function (event) { - // Change mousewheel handling so we let the default - // event happen if we are outside the container. -> FIXME: it still happening? - /*var coords = screenManager.getContainer().getCoordinates(); - var isOutsideContainer = event.client.y < coords.top || - event.client.y > coords.bottom || - event.client.x < coords.left || - event.client.x > coords.right; - - if (!isOutsideContainer) { - if (event.wheel > 0) { - this.zoomIn(1.05); - } - else { - this.zoomOut(1.05); - } - event.preventDefault(); - }*/ if (event.deltaY > 0) { - me.zoomIn(1.05); - } - else { - me.zoomOut(1.05); + me.zoomIn(zoomFactor); + } else { + me.zoomOut(zoomFactor); } event.preventDefault(); }); diff --git a/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java b/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java index 9b1d64bd..3b51eee1 100644 --- a/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java +++ b/wise-webapp/src/main/java/com/wisemapping/filter/SupportedUserAgent.java @@ -48,6 +48,7 @@ public class SupportedUserAgent implements Serializable { boolean result = browser == Browser.FIREFOX && majorVersion >= 10; result = result || browser == Browser.FIREFOX2 && majorVersion >= 17; result = result || browser == Browser.FIREFOX3 && majorVersion >= 29; + result = result || browser == Browser.FIREFOX4 && majorVersion >= 40; result = result || browser == Browser.IE8 || browser == Browser.IE9 || browser == Browser.IE11 ; result = result || browser == Browser.IE && majorVersion >= 8; result = result || browser == Browser.OPERA10 && majorVersion >= 11; diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java index 6290026d..b2df9709 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/AdminController.java @@ -72,7 +72,7 @@ public class AdminController extends BaseController { } @ApiOperation("Note: Administration permissions required.") - @RequestMapping(method = RequestMethod.GET, value = "admin/users/email/{email}", produces = {"application/json", "application/xml"}) + @RequestMapping(method = RequestMethod.GET, value = "admin/users/email/{email:.+}", produces = {"application/json", "application/xml"}) @ResponseBody public RestUser getUserByEmail(@PathVariable String email) throws IOException { final User user = userService.getUserBy(email); diff --git a/wise-webapp/src/main/java/com/wisemapping/rest/model/RestUser.java b/wise-webapp/src/main/java/com/wisemapping/rest/model/RestUser.java index 2e86f3f4..df4c7600 100644 --- a/wise-webapp/src/main/java/com/wisemapping/rest/model/RestUser.java +++ b/wise-webapp/src/main/java/com/wisemapping/rest/model/RestUser.java @@ -51,6 +51,7 @@ public class RestUser { public RestUser(@NotNull User user) { this.user = user; + this.password = user.getPassword(); } public Calendar getCreationDate() { diff --git a/wise-webapp/src/main/webapp/jsp/mindmapEmbed.jsp b/wise-webapp/src/main/webapp/jsp/mindmapEmbed.jsp index cf0b94a4..503327ae 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapEmbed.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapEmbed.jsp @@ -58,14 +58,6 @@ var persistence = mindplot.PersistenceManager.getInstance(); var mindmap = mindmap = persistence.load(mapId); designer.loadMap(mindmap); - - $('zoomIn').addEvent('click', function () { - designer.zoomIn(); - }); - - $('zoomOut').addEvent('click', function () { - designer.zoomOut(); - }); }); diff --git a/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp b/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp index c8e8cc19..f80a8f13 100644 --- a/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp +++ b/wise-webapp/src/main/webapp/jsp/mindmapPrint.jsp @@ -90,14 +90,6 @@ var persistence = mindplot.PersistenceManager.getInstance(); var mindmap = mindmap = persistence.load(mapId); designer.loadMap(mindmap); - - $('zoomIn').addEvent('click', function () { - designer.zoomIn(); - }); - - $('zoomOut').addEvent('click', function () { - designer.zoomOut(); - }); });