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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3dce055f4fbf6044f645b3757c3af8508909aba98135a0520d507965a352b00e
|
4
|
+
data.tar.gz: 4f08baf43ef9f60c33c3e8a0af21233ae09ada1a0d6d28328c2419ce23b8ca0f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f7a2677637a9272dad36623910f89ea874d94f45b992aa4da1731784e68e5337a42c8f64c8f7031aabdcb2e912c48f2f1c6b43e3fabbf5cb2d7e4372faf96da
|
7
|
+
data.tar.gz: 81f4937b7b7a33cfc0424a14205a48528ea306142339943025812f5e9eaf2b337f982639b3e36d370d7d5dea7b51cc649f876128f8c1c879c3c725644d39b948
|
@@ -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
|
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.
|
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-
|
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
|