← Back to team overview

dhis2-devs team mailing list archive

[Branch ~dhis2-devs-core/dhis2/trunk] Rev 21547: Analysis, selectable text.

 

------------------------------------------------------------
revno: 21547
committer: Jan Henrik Overland <janhenrik.overland@xxxxxxxxx>
branch nick: dhis2
timestamp: Tue 2015-12-29 17:35:10 +0100
message:
  Analysis, selectable text.
modified:
  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-visualizer/scripts/core.js
  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-pivot/scripts/core.js
  dhis-2/dhis-web/dhis-web-apps/src/main/webapp/dhis-web-visualizer/scripts/core.js


--
lp:dhis2
https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk

Your team DHIS 2 developers is subscribed to branch lp:dhis2.
To unsubscribe from this branch go to https://code.launchpad.net/~dhis2-devs-core/dhis2/trunk/+edit-subscription
=== 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;
+                        };
                     }
                 };