bhf 0.8.5 → 0.8.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/assets/javascripts/bhf/application.js +6 -0
- data/app/assets/stylesheets/bhf/application.css.sass +11 -0
- data/app/controllers/bhf/entries_controller.rb +1 -1
- data/app/views/bhf/form/column/_paperclip.haml +3 -1
- data/bhf.gemspec +3 -3
- data/config/locales/de.yml +3 -0
- data/config/locales/en.yml +2 -0
- 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: 94caf2e70b06955f232bd16d1316b1aea3dcb938
|
4
|
+
data.tar.gz: 18f88f9289d9d2d232a3c175711cb722763502a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 920ae7abc4bc7fdac280e99f8ef22cd4aec73932d72db2b2cb8afe688c9734d59cb422c4c79a3a47d0e551b070021a3176d4be67cc97769fc4938e641ee4c194
|
7
|
+
data.tar.gz: a4dc0612a5e39f6961b6a3f7f56d5ee32c253822ac255c075b039778e071f138221a8c1b7be4ab7fea88741225586ecf0b2951257e364b075dd68894fdb97267
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.8.
|
1
|
+
0.8.6
|
@@ -332,6 +332,12 @@ Turbolinks.pagesCached(0);
|
|
332
332
|
}, 500);
|
333
333
|
});
|
334
334
|
|
335
|
+
mainScope.getElements('.ninja_file_field').addEvent('change', function(){
|
336
|
+
var text = this.value.split('\\');
|
337
|
+
this.getParent().getElement('.h_text').set('text', text.getLast());
|
338
|
+
});
|
339
|
+
|
340
|
+
|
335
341
|
ajaxNote.success();
|
336
342
|
});
|
337
343
|
|
@@ -660,6 +660,17 @@ a
|
|
660
660
|
&:hover
|
661
661
|
color: $r1
|
662
662
|
|
663
|
+
.ninja_file_field_holder
|
664
|
+
position: relative
|
665
|
+
.ninja_file_field
|
666
|
+
position: absolute
|
667
|
+
height: 100%
|
668
|
+
width: 100%
|
669
|
+
background: transparent
|
670
|
+
opacity: 0
|
671
|
+
z-index: 1
|
672
|
+
left: 0
|
673
|
+
top: 0
|
663
674
|
|
664
675
|
footer
|
665
676
|
padding: 20px 0 60px 0
|
@@ -73,7 +73,7 @@ class Bhf::EntriesController < Bhf::ApplicationController
|
|
73
73
|
new_record.before_bhf_duplicate(@object) if new_record.respond_to?(:before_bhf_duplicate)
|
74
74
|
if new_record.save
|
75
75
|
new_record.after_bhf_duplicate(@object) if new_record.respond_to?(:after_bhf_duplicate)
|
76
|
-
redirect_to(page_url(@platform.page_name, anchor: "#{@platform.name}_platform"), notice: set_message('duplicate.success', @model))
|
76
|
+
redirect_to(page_url(@platform.page_name, anchor: "#{@platform.name}_platform"), notice: set_message('duplicate.success', @model), flash: {referral_entry: {id: new_record.id, platform: @platform.name}})
|
77
77
|
else
|
78
78
|
redirect_to(page_url(@platform.page_name, anchor: "#{@platform.name}_platform"), notice: set_message('duplicate.error', @model))
|
79
79
|
end
|
@@ -14,4 +14,6 @@
|
|
14
14
|
= f.label "#{field.name}_destroy", t('bhf.helpers.file.delete')
|
15
15
|
|
16
16
|
- unless @quick_edit
|
17
|
-
|
17
|
+
%a.qe_button.ninja_file_field_holder.default_form_align
|
18
|
+
%span.h_text= t('bhf.helpers.form.file_field.select')
|
19
|
+
= f.file_field field.name, class: 'ninja_file_field'
|
data/bhf.gemspec
CHANGED
@@ -2,16 +2,16 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: bhf 0.8.
|
5
|
+
# stub: bhf 0.8.6 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "bhf"
|
9
|
-
s.version = "0.8.
|
9
|
+
s.version = "0.8.6"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib"]
|
13
13
|
s.authors = ["Anton Pawlik"]
|
14
|
-
s.date = "2014-07-
|
14
|
+
s.date = "2014-07-07"
|
15
15
|
s.description = "Gets you there on time"
|
16
16
|
s.email = "anton.pawlik@gmail.com"
|
17
17
|
s.extra_rdoc_files = [
|
data/config/locales/de.yml
CHANGED
data/config/locales/en.yml
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bhf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Pawlik
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-07-
|
11
|
+
date: 2014-07-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|