--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/src/pyams_skin/resources/js/myams-event.js Wed Oct 17 11:14:10 2018 +0200
@@ -0,0 +1,30 @@
+/**
+ * MyAMS events management
+ */
+(function($, globals) {
+
+ var MyAMS = globals.MyAMS,
+ ams = MyAMS;
+
+ MyAMS.event = {
+
+ /**
+ * Stop current event propagation
+ */
+ stop: function(event) {
+ if (!event) {
+ event = window.event;
+ }
+ if (event && (typeof(event) !== 'string')) {
+ if (event.stopPropagation) {
+ event.stopPropagation();
+ event.preventDefault();
+ } else {
+ event.cancelBubble = true;
+ event.returnValue = false;
+ }
+ }
+ }
+ };
+
+})(jQuery, this);