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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1760a5dd4251d63c74014ef6eb690d7e67291e7d
4
- data.tar.gz: ef7c4c323284ae9f150ba1e25542c5e95adf7329
3
+ metadata.gz: 7717f7f0c45558fea58b5b3291ad36d6e6bd3859
4
+ data.tar.gz: 07ec367b90eeeb5402a83399fc7ae321587ce1d2
5
5
  SHA512:
6
- metadata.gz: b31235afe58f6d896f19e3715121cef0f9efbceab24830515b46943ae3d5b148f14233e753ae2721153c998d3af320d15907307c4095f22d6a29b4346ec5fb4b
7
- data.tar.gz: 55b4a65ba43ba95e03d8d73df3d2548c0ebeba555668578dd7552cef43a550d45c651c49e02450184eb421d0ce6fb9816a8127432ffbb5a7f15ecf66f2a303e9
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
- invalidForm.response.stripScripts(function(script){
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')) {
@@ -28,7 +28,6 @@ var AjaxEditStack = new Class({
28
28
  }
29
29
  });
30
30
 
31
- var fadeTm;
32
31
  qe.addEvents({
33
32
  startRequest: function(){
34
33
  this.wrapElement.addClass('live_edit');
@@ -578,7 +578,6 @@ form
578
578
  border-color: $b2
579
579
  &.animate
580
580
  +transition-duration(.3)
581
- +transition-delay(.28)
582
581
  .add_field
583
582
  font-size: 20px
584
583
  font-weight: bold
@@ -1,3 +1,3 @@
1
1
  = node f, field do
2
- = f.hidden_field :lat, :'data-default-lat' => 42.6259285, class: 'map_data_lat'
3
- = f.hidden_field :lng, :'data-default-lng' => -70.6519888, class: 'map_data_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', :'data-spliter' => (f.object.send("#{field.name}_spliter") if f.object.respond_to?(:"#{field.name}_spliter"))
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= object.class.human_attribute_name(column.name) + ':'
3
- %span.dd{class: "#{column.field.macro} #{column.field.display_type}", :'data-column-name' => column.name}
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 = (flash[:referral_entry][:platform] == platform.name && flash[:referral_entry][: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), :'data-sort-url' => sort_entries_path(platform.name)}
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}", :'data-column-name' => column.name}
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, :'data-no-turbolink' => true
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, {:'data-turbolinks-eval' => false}
40
+ = javascript_include_tag js, data: {turbolinks_eval: false}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bhf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.11
4
+ version: 0.7.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anton Pawlik