promethee 1.6.62 → 1.6.63

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2b5e0e2fa2c5da563d962b579ab9e7f38ff0917d53e4354eb591fd6a14cda5a6
4
- data.tar.gz: 23a981ad0861e75b043951c3f41db4c242428d4f59773b9835fb944744309280
3
+ metadata.gz: 3dce055f4fbf6044f645b3757c3af8508909aba98135a0520d507965a352b00e
4
+ data.tar.gz: 4f08baf43ef9f60c33c3e8a0af21233ae09ada1a0d6d28328c2419ce23b8ca0f
5
5
  SHA512:
6
- metadata.gz: 16260d0490d55e5f9937d7572c86cd5b1f7beb803cf72f6c8b6bd7184e2a506a0fef7096ea9a4ae2b05fe6dba74b23ca63553ee9d0a72a326bcccc9bc1f772bb
7
- data.tar.gz: d934fa551372051128f302876e56ea4dad64e04962ee45de82e2e2e90f9120a210bded208a009343fe294f4858826578003b6a47ada26338178a64697b1ad772
6
+ metadata.gz: 7f7a2677637a9272dad36623910f89ea874d94f45b992aa4da1731784e68e5337a42c8f64c8f7031aabdcb2e912c48f2f1c6b43e3fabbf5cb2d7e4372faf96da
7
+ data.tar.gz: 81f4937b7b7a33cfc0424a14205a48528ea306142339943025812f5e9eaf2b337f982639b3e36d370d7d5dea7b51cc649f876128f8c1c879c3c725644d39b948
@@ -1,3 +1,5 @@
1
- $(document).ready(function() {
2
- $("a.fancybox").fancybox();
1
+ /*global $ */
2
+ $(document).ready(function () {
3
+ "use strict";
4
+ $("a.fancybox").fancybox();
3
5
  });
@@ -0,0 +1,11 @@
1
+ /*global window */
2
+ window.addEventListener("beforeunload", function (event) {
3
+ "use strict";
4
+ var message,
5
+ shouldLock = document.body.className.match(/\bpromethee-page-locked\b/);
6
+ if (shouldLock) {
7
+ message = "You have modified this page. If you quit without saving, your changes will be lost.";
8
+ event.returnValue = message;
9
+ return message;
10
+ }
11
+ });
@@ -4,16 +4,4 @@
4
4
  //= require angular-bootstrap-colorpicker/js/bootstrap-colorpicker-module
5
5
  //= require @fancyapps/fancybox/dist/jquery.fancybox.min
6
6
  //= require promethee/fancybox
7
-
8
- window.onbeforeunload = function(evt) {
9
- if (document.body.className.match(/\bpromethee-page-locked\b/)) {
10
- var messageText = 'You have modified this page. If you quit this page without saving it, all changes will be lost.';
11
- if (typeof evt == 'undefined') {
12
- evt = window.event;
13
- }
14
- if (evt) {
15
- evt.returnValue = messageText;
16
- }
17
- return messageText;
18
- }
19
- };
7
+ //= require promethee/unload
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.6.62'
3
+ VERSION = '1.6.63'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,10 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: promethee
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.62
4
+ version: 1.6.63
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sébastien Gaya
8
+ - Julien Dargelos
8
9
  - Arnaud Levy
9
10
  - Pierre-André Boissinot
10
11
  - Antoine Prévost
@@ -13,7 +14,7 @@ authors:
13
14
  autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
- date: 2018-07-25 00:00:00.000000000 Z
17
+ date: 2018-07-30 00:00:00.000000000 Z
17
18
  dependencies:
18
19
  - !ruby/object:Gem::Dependency
19
20
  name: rails
@@ -158,6 +159,7 @@ dependencies:
158
159
  description:
159
160
  email:
160
161
  - sebastien.gaya@gmail.com
162
+ - contact@juliendargelos.com
161
163
  - alevy@lespoupees.paris
162
164
  - paboissinot@lespoupees.paris
163
165
  - aprevost@lespoupees.paris
@@ -176,6 +178,7 @@ files:
176
178
  - app/assets/images/logo-promethee-vertical.svg
177
179
  - app/assets/javascripts/promethee.js
178
180
  - app/assets/javascripts/promethee/fancybox.js
181
+ - app/assets/javascripts/promethee/unload.js
179
182
  - app/assets/stylesheets/promethee-edit.sass
180
183
  - app/assets/stylesheets/promethee-edit/_move.sass
181
184
  - app/assets/stylesheets/promethee-edit/_preview.sass