bhf 0.7.11 → 0.7.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/bhf/classes/AjaxEdit.js +1 -4
- data/app/assets/javascripts/bhf/classes/AjaxEditStack.js +0 -1
- data/app/assets/stylesheets/bhf/application.css.sass +0 -1
- data/app/views/bhf/entries/form/column/_mappin.haml +2 -2
- data/app/views/bhf/entries/form/column/_multiple_fields.haml +1 -1
- data/app/views/bhf/helper/_definition_item.haml +2 -2
- data/app/views/bhf/pages/_platform.haml +4 -4
- data/app/views/layouts/bhf/application.haml +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7717f7f0c45558fea58b5b3291ad36d6e6bd3859
|
4
|
+
data.tar.gz: 07ec367b90eeeb5402a83399fc7ae321587ce1d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: da31a849f79f4ccae09235f4accafe382540f97e25239404fcc97f2a7b6e35ee1f4734189cd66ae89bd60717394092f49beecb12d0a30910c88350a91029fd12
|
7
|
+
data.tar.gz: 010e4e702c586a48d5ccac78cf2c28c654deb3bca945c634936f062c0bb51a8efb5f1d20c9f91cdd0d1043b52ecb93e508404287e9aa598267992b99e069a9b5
|
@@ -27,7 +27,6 @@ var AjaxEdit = new Class({
|
|
27
27
|
}.bind(this),
|
28
28
|
onSuccess: function(responseTree, responseElements, responseHTML, responseJavaScript){
|
29
29
|
this.injectForm(responseHTML);
|
30
|
-
eval(responseJavaScript);
|
31
30
|
|
32
31
|
var nextElem = this.holder.getElement('.save_and_next');
|
33
32
|
if (this.options.hideNext && nextElem) {
|
@@ -52,9 +51,7 @@ var AjaxEdit = new Class({
|
|
52
51
|
}.bind(this),
|
53
52
|
onFailure: function(invalidForm){
|
54
53
|
this.injectForm(invalidForm.response);
|
55
|
-
|
56
|
-
eval(script);
|
57
|
-
});
|
54
|
+
window.fireEvent('quickEditReady', [this.holder]);
|
58
55
|
}.bind(this),
|
59
56
|
onSuccess: function(json){
|
60
57
|
if ( ! eventNames.contains('successAndNext')) {
|
@@ -1,3 +1,3 @@
|
|
1
1
|
= node f, field do
|
2
|
-
= f.hidden_field :lat, :'
|
3
|
-
= f.hidden_field :lng, :'
|
2
|
+
= f.hidden_field :lat, class: 'map_data_lat', data: {default_lat: 42.6259285}
|
3
|
+
= f.hidden_field :lng, class: 'map_data_lng', data: {default_lng: -70.6519888}
|
@@ -1,2 +1,2 @@
|
|
1
1
|
= node f, field do
|
2
|
-
= f.text_field field.name, class: 'multiple_field', :
|
2
|
+
= f.text_field field.name, class: 'multiple_field', data: {spliter: (f.object.send("#{field.name}_spliter") if f.object.respond_to?(:"#{field.name}_spliter"))}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
%p
|
2
|
-
%span.dt
|
3
|
-
%span.dd{class:
|
2
|
+
%span.dt #{object.class.human_attribute_name(column.name)}:
|
3
|
+
%span.dd{class: [column.field.macro, column.field.display_type], data: {column_name: column.name}}
|
4
4
|
= content
|
@@ -1,7 +1,7 @@
|
|
1
1
|
- platform.pagination.template = self
|
2
2
|
- referral_id = nil
|
3
|
-
- if flash[:referral_entry]
|
4
|
-
- referral_id = (
|
3
|
+
- if flash[:referral_entry] && referral_entry = flash[:referral_entry].clone.symbolize_keys
|
4
|
+
- referral_id = (referral_entry[:platform] == platform.name && referral_entry[:id])
|
5
5
|
|
6
6
|
- if platform.custom_partial
|
7
7
|
= render partial: "bhf/pages/#{platform.custom_partial}", locals: {platform: platform}
|
@@ -32,7 +32,7 @@
|
|
32
32
|
%td{colspan: platform.columns_count}
|
33
33
|
= platform.pagination.create(platform) unless platform.sortable
|
34
34
|
|
35
|
-
%tbody{class: (:sortable if platform.sortable), :
|
35
|
+
%tbody{class: (:sortable if platform.sortable), data: {sort_url: sort_entries_path(platform.name)}}
|
36
36
|
- if platform.objects.any?
|
37
37
|
- platform.objects.each do |object|
|
38
38
|
- edit_link = edit_entry_path(platform.name, object)
|
@@ -42,7 +42,7 @@
|
|
42
42
|
%td.drag
|
43
43
|
%span.handle.icon
|
44
44
|
- platform.columns.each do |column|
|
45
|
-
%td{class: "#{column.field.macro} #{column.field.display_type}", :
|
45
|
+
%td{class: "#{column.field.macro} #{column.field.display_type}", data: {column_name: column.name}}
|
46
46
|
- a = if column.field.display_type != :boolean && object.send(column.name).blank?
|
47
47
|
- ' '
|
48
48
|
- else
|
@@ -16,7 +16,7 @@
|
|
16
16
|
- else
|
17
17
|
- Rails.application.assets.find_asset('logo_bhf.png') ? 'logo_bhf.png' : 'logo_bhf.svg'
|
18
18
|
|
19
|
-
= link_to image_tag(logo), @root_link ? @root_link : main_app.root_url, :
|
19
|
+
= link_to image_tag(logo), @root_link ? @root_link : main_app.root_url, data: {no_turbolink: true}
|
20
20
|
|
21
21
|
- if @areas && @areas.length > 1
|
22
22
|
= select_tag :area_select, options_from_collection_for_select(@areas, 'path', 'name', main_app.bhf_path(params[:bhf_area])), class: 'icon'
|
@@ -37,4 +37,4 @@
|
|
37
37
|
= render 'bhf/footer'
|
38
38
|
|
39
39
|
- Bhf::Engine.config.bhf.js.each do |js|
|
40
|
-
= javascript_include_tag js, {:
|
40
|
+
= javascript_include_tag js, data: {turbolinks_eval: false}
|