lalala 4.1.0.dev.332 → 4.1.0.dev.334
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 +4 -4
- data/app/assets/javascripts/lalala/modules/file-metadata.module.js +2 -2
- data/app/assets/javascripts/lalala/modules/multiple-files-uploader.module.js +1 -1
- data/app/assets/stylesheets/lalala/base/_base.css.scss +4 -0
- data/lib/formtastic/inputs/multiple_files_input.rb +5 -4
- data/lib/lalala/version.rb +1 -1
- data/test/dummy/db/schema.rb +0 -19
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74279769851af8004dd6fedf36acaa579d91d2df
|
4
|
+
data.tar.gz: c0ef9e5365b42a1be0ede001787d3eac08afe117
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2534b3139177a069653daff263b179ec75aa10879bbf2dc71ee75f9a13a20c529d7487cad5930d4e5f2191d4f250353afd929d1e8d4e45f26eea27155afe0b3f
|
7
|
+
data.tar.gz: 939333397107f59bfe80414011caf9de7f1cf85cf3f0ca445a0838a789c146100c1ce822d46c914049a6a677448c50a4a21fc71580f0b38caa62f3c5ca5428c2
|
@@ -131,7 +131,7 @@ FileMetadata.prototype.get_form_template = function() {
|
|
131
131
|
if (x.content) {
|
132
132
|
$(wrapper).append( $(x.content.children).clone() );
|
133
133
|
} else {
|
134
|
-
$(wrapper).append( $x.clone().
|
134
|
+
$(wrapper).append( $x.clone().html() );
|
135
135
|
}
|
136
136
|
|
137
137
|
return wrapper.innerHTML;
|
@@ -181,7 +181,7 @@ FileMetadata.prototype.copy_attributes_to_xfile = function() {
|
|
181
181
|
new_attributes_container.className = "attributes";
|
182
182
|
new_attributes_container.innerHTML = this.get_form_template();
|
183
183
|
|
184
|
-
this.$xfile.
|
184
|
+
this.$xfile.prepend(new_attributes_container);
|
185
185
|
$xattr = $(new_attributes_container);
|
186
186
|
|
187
187
|
this.fileuploader.remove_hidden_fields_from_checkboxes($xattr);
|
@@ -37,7 +37,7 @@ MultipleFilesUploader.prototype.make_xfile_template = function() {
|
|
37
37
|
$content = $(template.content.children);
|
38
38
|
$wrapper.append($content);
|
39
39
|
} else {
|
40
|
-
$content = $template.
|
40
|
+
$content = $.trim($template.html());
|
41
41
|
$wrapper.append($content);
|
42
42
|
}
|
43
43
|
|
@@ -137,7 +137,12 @@ class Formtastic::Inputs::MultipleFilesInput
|
|
137
137
|
<x-file class="uploaded saved-to-db" data-src-original="#{ asset_url_original }">
|
138
138
|
#{ thumb_html }
|
139
139
|
|
140
|
+
<div class="attributes">
|
141
|
+
#{ input.asset_attributes_form(template, param_key, asset) }
|
142
|
+
</div>
|
143
|
+
|
140
144
|
#{ Formtastic::Inputs::MultipleFilesInput.menu_html }
|
145
|
+
#{ template.hidden_field_tag(param_key + "[][file_name]", asset.file_name) }
|
141
146
|
#{ template.hidden_field_tag(param_key + "[][id]", asset.id) }
|
142
147
|
#{ template.hidden_field_tag(param_key + "[][_destroy]", "") }
|
143
148
|
|
@@ -145,10 +150,6 @@ class Formtastic::Inputs::MultipleFilesInput
|
|
145
150
|
#{ asset.file_name }
|
146
151
|
</div>
|
147
152
|
|
148
|
-
<div class="attributes">
|
149
|
-
#{ input.asset_attributes_form(template, param_key, asset) }
|
150
|
-
</div>
|
151
|
-
|
152
153
|
<div class="meta">
|
153
154
|
<div class="row"></div>
|
154
155
|
</div>
|
data/lib/lalala/version.rb
CHANGED
data/test/dummy/db/schema.rb
CHANGED
@@ -73,25 +73,6 @@ ActiveRecord::Schema.define(:version => 20140228141749) do
|
|
73
73
|
|
74
74
|
add_index "articles_tags", ["article_id", "tag_id"], :name => "index_articles_tags_on_article_id_and_tag_id", :unique => true
|
75
75
|
|
76
|
-
create_table "asset_translations", :force => true do |t|
|
77
|
-
t.string "locale"
|
78
|
-
t.integer "asset_id"
|
79
|
-
t.string "title"
|
80
|
-
t.text "caption"
|
81
|
-
end
|
82
|
-
|
83
|
-
create_table "assets", :force => true do |t|
|
84
|
-
t.string "asset"
|
85
|
-
t.string "type"
|
86
|
-
t.integer "asset_owner_id"
|
87
|
-
t.string "asset_owner_type"
|
88
|
-
t.string "asset_owner_section"
|
89
|
-
t.datetime "created_at", :null => false
|
90
|
-
t.datetime "updated_at", :null => false
|
91
|
-
end
|
92
|
-
|
93
|
-
add_index "assets", ["asset_owner_id", "asset_owner_type", "asset_owner_section"], :name => "asset_owner_idx"
|
94
|
-
|
95
76
|
create_table "page_hierarchies", :id => false, :force => true do |t|
|
96
77
|
t.integer "ancestor_id", :null => false
|
97
78
|
t.integer "descendant_id", :null => false
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lalala
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.1.0.dev.
|
4
|
+
version: 4.1.0.dev.334
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Simon Menke
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date: 2014-04-
|
16
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: activeadmin
|