=== modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/core.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/core.js 2015-12-04 14:38:50 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-reports/scripts/core.js 2015-12-29 16:35:10 +0000 @@ -2449,6 +2449,7 @@ // bodyStyle config.bodyStyle = 'padding: 12px; background: #fff; max-width: 600px; max-height: ' + app.getCenterRegionHeight() / 2 + 'px'; + config.bodyCls = 'user-select'; // destroy handler config.modal = true; @@ -2462,6 +2463,13 @@ if (!w.hasDestroyOnBlurHandler) { web.window.addDestroyOnBlurHandler(w); } + + document.body.oncontextmenu = true; + }, + destroy: function() { + document.body.oncontextmenu = function() { + return false; + }; } }; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/core.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/core.js 2015-12-04 14:38:50 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-event-visualizer/scripts/core.js 2015-12-29 16:35:10 +0000 @@ -3029,6 +3029,7 @@ // bodyStyle config.bodyStyle = 'padding: 12px; background: #fff; max-width: 600px; max-height: ' + app.getCenterRegionHeight() / 2 + 'px'; + config.bodyCls = 'user-select'; // destroy handler config.modal = true; @@ -3042,6 +3043,13 @@ if (!w.hasDestroyOnBlurHandler) { web.window.addDestroyOnBlurHandler(w); } + + document.body.oncontextmenu = true; + }, + destroy: function() { + document.body.oncontextmenu = function() { + return false; + }; } }; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/core.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/core.js 2015-11-29 18:32:14 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-mapping/scripts/core.js 2015-12-29 16:35:10 +0000 @@ -3467,6 +3467,7 @@ // bodyStyle config.bodyStyle = 'padding: 12px; background: #fff; max-width: 600px; max-height: ' + gis.viewport.centerRegion.getHeight() / 2 + 'px'; + config.bodyCls = 'user-select'; // destroy handler config.modal = true; @@ -3480,6 +3481,13 @@ if (!w.hasDestroyOnBlurHandler) { gis.util.gui.window.addDestroyOnBlurHandler(w); } + + document.body.oncontextmenu = true; + }, + destroy: function() { + document.body.oncontextmenu = function() { + return false; + }; } }; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core.js 2015-11-27 16:05:54 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-pivot/scripts/core.js 2015-12-29 16:35:10 +0000 @@ -2081,6 +2081,7 @@ // bodyStyle config.bodyStyle = 'padding: 12px; background: #fff; max-width: 600px; max-height: ' + app.getCenterRegionHeight() / 2 + 'px'; + config.bodyCls = 'user-select'; // destroy handler config.modal = true; @@ -2094,6 +2095,13 @@ if (!w.hasDestroyOnBlurHandler) { web.window.addDestroyOnBlurHandler(w); } + + document.body.oncontextmenu = true; + }, + destroy: function() { + document.body.oncontextmenu = function() { + return false; + }; } }; === modified file 'dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/core.js' --- dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/core.js 2015-11-27 17:23:06 +0000 +++ dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/core.js 2015-12-29 16:35:10 +0000 @@ -2360,6 +2360,7 @@ // bodyStyle config.bodyStyle = 'padding: 12px; background: #fff; max-width: 600px; max-height: ' + app.getCenterRegionHeight() / 2 + 'px'; + config.bodyCls = 'user-select'; // destroy handler config.modal = true; @@ -2373,6 +2374,13 @@ if (!w.hasDestroyOnBlurHandler) { web.window.addDestroyOnBlurHandler(w); } + + document.body.oncontextmenu = true; + }, + destroy: function() { + document.body.oncontextmenu = function() { + return false; + }; } };