scrivito_advanced_editors 0.0.1 → 0.0.4

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: 6e76149b824e06f476ffa18e9a7fa3440543dc3e
4
- data.tar.gz: 4f06fb39e7609a6d38769c2874c2a53995b32320
3
+ metadata.gz: e773627e1f3b30dbffb3b5304541d57be6d52365
4
+ data.tar.gz: 3e31578e0dff23360f4649b0145181d595141df6
5
5
  SHA512:
6
- metadata.gz: 1e3858d3bcaa3b6b5a9ca83c199ec4f7aeb037e5fcb29099529a95b7c9dfb61c648190dc39580305a927554064f03aa3c39a3765ba2bb1f1c6c79bc90d33e9cb
7
- data.tar.gz: ed22e3a9013d87ac9930dbbac92bf295161bd02171e4bdc90bc7ee694f9f8fd5b2f76485aaac5ec7a2ddb1f9adddf104af8c70bb613a00adff3cb7e4b160f0a8
6
+ metadata.gz: eb92d2b9bb8b939372cda167599d11ed578a918aeb6b8f36abd213e0cab89503b22218aa148f9763b7877340c80e46cc1050a904e90ecd1be63b270d0aead906
7
+ data.tar.gz: 2674ac83b701208f206d9dd89eb3c348cb1d22936ac0a940b00bbfcb9632f8f867ccdd778c4a1e44ecd1dfe1e76610fe8444b692b4127a01182243fd8beaa09f
@@ -11,8 +11,9 @@
11
11
  initFunction: function() { },
12
12
 
13
13
  // set function triggert on click
14
- clickFunction: function(scrivito_tag, text) {
15
- return scrivito_tag.scrivito('save', text.join(','));
14
+ clickFunction: function(scrivito_tag, text, delimiter) {
15
+ var delimiter = $(scrivito_tag).data('delimiter') || '|';
16
+ return scrivito_tag.scrivito('save', text.join(delimiter));
16
17
  },
17
18
  };
18
19
 
@@ -20,7 +21,6 @@
20
21
  scrivito.on('content', function() {
21
22
  if(scrivito.in_editable_view()) {
22
23
  var elems = $(ScrivitoListEditor.selector);
23
-
24
24
  $.each(elems, function(index, elem) {
25
25
  var delimiter = $(elem).data('delimiter') || '|';
26
26
  $(elem).tagEditor({
@@ -2,7 +2,7 @@
2
2
  /* surrounding tag container */
3
3
  .tag-editor {
4
4
  list-style-type: none;
5
- padding: 0 5px;
5
+ padding: 5px 0;
6
6
  margin: 0 3px 3px;
7
7
  overflow: hidden;
8
8
  cursor: text;
@@ -31,8 +31,8 @@
31
31
  /* tag style */
32
32
  .tag-editor .tag-editor-tag {
33
33
  padding: 3px 5px;
34
- color: #46799b;
35
- background: #e0eaf1;
34
+ color: #fff;
35
+ background: #439439;
36
36
  white-space: nowrap;
37
37
  overflow: hidden;
38
38
  cursor: pointer;
@@ -41,7 +41,8 @@
41
41
 
42
42
  /* delete icon */
43
43
  .tag-editor .tag-editor-delete {
44
- background: #e0eaf1;
44
+ background: #439439;
45
+ color: #fff;
45
46
  cursor: pointer;
46
47
  padding: 3px 0;
47
48
  border-radius: 0 2px 2px 0; }
@@ -61,7 +62,7 @@
61
62
  .tag-editor .tag-editor-tag.active+.tag-editor-delete,
62
63
  .tag-editor .tag-editor-tag.active+.tag-editor-delete i { background: none; cursor: text; }
63
64
 
64
- .tag-editor .tag-editor-tag.active { background: none !important; }
65
+ .tag-editor .tag-editor-tag.active { background: #eee; color: #000; }
65
66
 
66
67
  /* jQuery UI autocomplete - code.jquery.com/ui/1.10.2/themes/smoothness/jquery-ui.css */
67
68
  .ui-autocomplete { position: absolute; top: 0; left: 0; cursor: default; font-size: 14px; }
@@ -0,0 +1,25 @@
1
+ .details-view h4 {
2
+ margin: 20px 0 0;
3
+ padding: 0;
4
+ font-size: 18px;
5
+ line-height: 22px;
6
+ color: #439439;
7
+ font-weight: bold;
8
+ }
9
+
10
+ .details-view h4:first-child {
11
+ margin-top: 0;
12
+ }
13
+
14
+ .details-view h5 {
15
+ margin: 20px 0 0;
16
+ padding: 0;
17
+ font-size: 14px;
18
+ line-height: 19px;
19
+ color: #439439;
20
+ font-weight: bold;
21
+ }
22
+
23
+ .details-view h5:first-child {
24
+ margin-top: 0;
25
+ }
@@ -25,10 +25,6 @@
25
25
  background: #222;
26
26
  }
27
27
 
28
- .tab-panels {
29
- overflow: hidden;
30
- }
31
-
32
28
  .tab-panels .tab-panel {
33
29
  display: none;
34
30
  }
@@ -3,6 +3,7 @@ module ScrivitoAdvancedEditors
3
3
 
4
4
  def scrivito_toggle_button_editor(obj, attribute, list=nil)
5
5
  list = enum_list(obj, attribute) if list.nil?
6
+
6
7
  buttons = if block_given?
7
8
  list.map { |elem| yield(elem) }.join('').html_safe
8
9
  else
@@ -1,3 +1,3 @@
1
1
  module ScrivitoAdvancedEditors
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_advanced_editors
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-13 00:00:00.000000000 Z
11
+ date: 2015-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -82,6 +82,7 @@ files:
82
82
  - app/assets/javascripts/scrivito_advanced_editors/scrivito_tabs.js
83
83
  - app/assets/javascripts/scrivito_advanced_editors/scrivito_toggle_button.js
84
84
  - app/assets/stylesheets/scrivito_advanced_editors/jquery.tag-editor.css
85
+ - app/assets/stylesheets/scrivito_advanced_editors/scrivito_dialog.css
85
86
  - app/assets/stylesheets/scrivito_advanced_editors/scrivito_tabs.css
86
87
  - app/assets/stylesheets/scrivito_advanced_editors/scrivito_toggle_button.css
87
88
  - app/assets/stylesheets/scrivito_advanced_editors/styles.css