promethee 1.0.15 → 1.0.16

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
  SHA1:
3
- metadata.gz: bf524320f8f8d60d0d5a4e335afb167c92bc4250
4
- data.tar.gz: 7d9767e4312ed8f1cb76be8e9b4592903b19b32e
3
+ metadata.gz: 5414d58a8567e08c180995653ab9e3755298901d
4
+ data.tar.gz: 2aa4b0eb73ec172db80d0de22984e08be9b2ad7f
5
5
  SHA512:
6
- metadata.gz: 5b20e829e0796d9ee3968a48ae899b07dd52ab470e89e755500d5e6c5d0a41c482cd3ac5057b6e2913e8de93d274e1e42a7b09904737b9e6d525646da4e7cec5
7
- data.tar.gz: 43a6f69ad9e2e89efb355d6702292431f91f59418977d7eb21f6c7136964bc5d8e056cabc5a1ce10e2ccfc3683792b26c2f3ca701880a6353f501c7b334b5f33
6
+ metadata.gz: 3717ba625f86d8ceb4483ab60ff744f5f62991d334564bbbcecb279875045623fc2f255fb5b029f98a5c1b3b38c95fa22faf1c15c5d0beadb8ecf3042b13cc98
7
+ data.tar.gz: adfb6d19b7a2badb82507b21579c6d3e591b2988e600afc174aa6fe016dfd2e9f00279921c779de3bd0dd914f62e72705fa2c964bcbb7530d92cd198f724567e
@@ -1,6 +1,6 @@
1
1
  <script type="text/ng-template" id="promethee/write/toolbar">
2
2
  <div class="pull-right">
3
- <span ng-click="editing = !editing" class="promethee-editor__button"><%= fa_icon 'pencil-square' %></span>
3
+ <span ng-click="toggleEdit()" class="promethee-editor__button"><%= fa_icon 'pencil-square' %></span>
4
4
  <span ng-click="remove(component, components)" class="promethee-editor__button"><%= fa_icon 'window-close' %></span>
5
5
  </div>
6
6
  </script>
@@ -1,10 +1,13 @@
1
1
  <script type="text/ng-template" id="promethee/write/component/column">
2
- <div class="
3
- col
4
- col-md-{{component.attributes.size}}
5
- col-md-offset-{{component.attributes.offset}}
6
- promethee-editor__component
7
- promethee-editor__component--column"
2
+ <div
3
+ class="
4
+ col
5
+ col-md-{{component.attributes.size}}
6
+ col-md-offset-{{component.attributes.offset}}
7
+ promethee-editor__component
8
+ promethee-editor__component--column
9
+ "
10
+ ng-controller="ColumnController"
8
11
  >
9
12
  <div class="promethee-editor__toolbar">
10
13
  Column
@@ -32,3 +35,21 @@
32
35
  </span>
33
36
  </div>
34
37
  </script>
38
+
39
+ <script>
40
+ promethee.controller('ColumnController', ['$scope', function($scope) {
41
+ $scope.editing = false;
42
+
43
+ $scope.edit = function() {
44
+ this.editing = true;
45
+ };
46
+
47
+ $scope.complete = function() {
48
+ this.editing = false;
49
+ };
50
+
51
+ $scope.toggleEdit = function() {
52
+ this.editing = !this.editing;
53
+ };
54
+ }]);
55
+ </script>
@@ -36,7 +36,6 @@
36
36
  });
37
37
 
38
38
  promethee.controller('ImageController', ['$scope', function($scope) {
39
-
40
39
  $scope.editing = false;
41
40
 
42
41
  $scope.edit = function() {
@@ -47,5 +46,8 @@
47
46
  this.editing = false;
48
47
  };
49
48
 
49
+ $scope.toggleEdit = function() {
50
+ this.editing = !this.editing;
51
+ };
50
52
  }]);
51
53
  </script>
@@ -39,5 +39,18 @@
39
39
  })
40
40
  }
41
41
 
42
+ $scope.editing = false;
43
+
44
+ $scope.edit = function() {
45
+ this.editing = true;
46
+ };
47
+
48
+ $scope.complete = function() {
49
+ this.editing = false;
50
+ };
51
+
52
+ $scope.toggleEdit = function() {
53
+ this.editing = !this.editing;
54
+ };
42
55
  }]);
43
56
  </script>
@@ -27,7 +27,6 @@
27
27
  });
28
28
 
29
29
  promethee.controller('TextController', ['$scope', function($scope) {
30
-
31
30
  $scope.editing = false;
32
31
 
33
32
  $scope.edit = function() {
@@ -38,6 +37,10 @@
38
37
  this.editing = false;
39
38
  };
40
39
 
40
+ $scope.toggleEdit = function() {
41
+ this.editing = !this.editing;
42
+ };
43
+
41
44
  $scope.options = {
42
45
  toolbar: [
43
46
  ['headline', ['style']],
@@ -46,6 +49,5 @@
46
49
  ['code', ['codeview']]
47
50
  ]
48
51
  };
49
-
50
52
  }]);
51
53
  </script>
@@ -30,9 +30,20 @@
30
30
  });
31
31
 
32
32
  promethee.controller('VideoController', ['$scope', function($scope) {
33
-
34
33
  $scope.editing = false;
35
34
 
35
+ $scope.edit = function() {
36
+ this.editing = true;
37
+ };
38
+
39
+ $scope.complete = function() {
40
+ this.editing = false;
41
+ };
42
+
43
+ $scope.toggleEdit = function() {
44
+ this.editing = !this.editing;
45
+ };
46
+
36
47
  Object.defineProperty($scope, 'embed', {
37
48
  get: function() {
38
49
  var embed = null;
@@ -1,5 +1,5 @@
1
1
  module Promethee
2
2
  module Rails
3
- VERSION = '1.0.15'
3
+ VERSION = '1.0.16'
4
4
  end
5
5
  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.0.15
4
+ version: 1.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Julien Dargelos