promethee 1.6.36 → 1.6.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/app/assets/javascripts/promethee.js +14 -1
- data/app/assets/stylesheets/promethee-edit/_move.sass +1 -1
- data/app/views/promethee/_edit.html.erb +8 -1
- data/app/views/promethee/_localize.html.erb +6 -0
- data/app/views/promethee/components/page/_edit.move.html.erb +1 -1
- data/lib/promethee/rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: ccb154da2421676a7fc44384c86f66d4076d1cc6
|
|
4
|
+
data.tar.gz: 2c1849572df558800c368228de971cea17eec311
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d1b4c8df922c85fbd2e5bff3da0d25f2a9b11cbff5631d5cb548dcd3f310cf7eb651b609e78370758f7142fd9b608bd1891dcd3ad8f004442e55e32add7c87f0
|
|
7
|
+
data.tar.gz: 2683d96a9872f3ad1ecea5a9858f6b632d15350a7ae91a94cb895b33411129899fb084a8408b910c3e82439d0f16316ee5585e8829e119443a6f5449b6c5d188
|
|
@@ -3,4 +3,17 @@
|
|
|
3
3
|
//= require ng-file-upload/dist/ng-file-upload
|
|
4
4
|
//= require angular-bootstrap-colorpicker/js/bootstrap-colorpicker-module
|
|
5
5
|
//= require fancybox/dist/js/jquery.fancybox
|
|
6
|
-
//= require promethee/fancybox
|
|
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
|
+
};
|
|
@@ -130,9 +130,16 @@ promethee.controller('PrometheeController', ['$scope', 'summernoteConfig', 'pres
|
|
|
130
130
|
}
|
|
131
131
|
|
|
132
132
|
$scope.submit = function() {
|
|
133
|
+
document.body.classList.remove("promethee-page-locked");
|
|
133
134
|
$('#promethee').closest('form').submit();
|
|
134
135
|
};
|
|
135
136
|
|
|
137
|
+
$scope.$watch('promethee.data', function(new_val, old_val) {
|
|
138
|
+
if (old_val != new_val) {
|
|
139
|
+
document.body.classList.add("promethee-page-locked");
|
|
140
|
+
}
|
|
141
|
+
}, true);
|
|
142
|
+
|
|
136
143
|
$scope.summernoteConfig = summernoteConfig;
|
|
137
144
|
$scope.sendPreviewData('thumb-preview');
|
|
138
145
|
}]);
|
|
@@ -159,7 +166,7 @@ promethee.controller('PrometheeController', ['$scope', 'summernoteConfig', 'pres
|
|
|
159
166
|
</div>
|
|
160
167
|
|
|
161
168
|
<div class="promethee-edit" ng-show="promethee.fullscreen">
|
|
162
|
-
<input type="hidden" name="page[data]" id="page_data" value="{{promethee.data}}"
|
|
169
|
+
<input type="hidden" name="page[data]" id="page_data" value="{{promethee.data}}" />
|
|
163
170
|
<div class="upload__modal" ng-show="upload.running">
|
|
164
171
|
|
|
165
172
|
</div>
|
|
@@ -24,6 +24,12 @@ promethee_data = Promethee::Data.new master_data, localization_data: localizatio
|
|
|
24
24
|
$scope.component = {children: data.components};
|
|
25
25
|
|
|
26
26
|
$scope.summernoteConfig = summernoteConfig;
|
|
27
|
+
|
|
28
|
+
$scope.$watch('data', function(new_val, old_val) {
|
|
29
|
+
if (old_val != new_val) {
|
|
30
|
+
document.body.classList.add("promethee-page-locked");
|
|
31
|
+
}
|
|
32
|
+
}, true);
|
|
27
33
|
}]);
|
|
28
34
|
</script>
|
|
29
35
|
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<div class="promethee-edit__component__inner">
|
|
6
6
|
<div class="header">Page</div>
|
|
7
7
|
<div class="promethee-edit__move__columns">
|
|
8
|
-
<div class="row">
|
|
8
|
+
<div class="row grid">
|
|
9
9
|
<% 12.times do %>
|
|
10
10
|
<div class="col col-md-1"><div class="color"></div></div>
|
|
11
11
|
<% end %>
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
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.37
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Julien Dargelos
|
|
@@ -13,7 +13,7 @@ authors:
|
|
|
13
13
|
autorequire:
|
|
14
14
|
bindir: bin
|
|
15
15
|
cert_chain: []
|
|
16
|
-
date: 2018-06-
|
|
16
|
+
date: 2018-06-25 00:00:00.000000000 Z
|
|
17
17
|
dependencies:
|
|
18
18
|
- !ruby/object:Gem::Dependency
|
|
19
19
|
name: rails
|
|
@@ -440,7 +440,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
440
440
|
version: '0'
|
|
441
441
|
requirements: []
|
|
442
442
|
rubyforge_project:
|
|
443
|
-
rubygems_version: 2.
|
|
443
|
+
rubygems_version: 2.6.11
|
|
444
444
|
signing_key:
|
|
445
445
|
specification_version: 4
|
|
446
446
|
summary: Bring fire to your page
|