bootsy 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -121,12 +121,6 @@ window.Bootsy = (function(){
121
121
 
122
122
  Bootsy.editor = $('textarea.bootsy_text_area').wysihtml5(Bootsy.editorOptions).data("wysihtml5").editor;
123
123
 
124
- // In order to properly work with Twitter Bootstrap 2.1
125
- $('body').off('click.dropdown touchstart.dropdown.data-api', '.dropdown');
126
- $('body').on('click.dropdown touchstart.dropdown.data-api', '.dropdown form', function(e){
127
- e.stopPropagation();
128
- });
129
-
130
124
  if($('textarea.bootsy_text_area').attr('data-alert-unsaved') != 'false'){
131
125
  window.onbeforeunload = Bootsy.alertUnsavedChanges;
132
126
  }
@@ -19,7 +19,12 @@ module Bootsy
19
19
  end
20
20
 
21
21
  def bootsy_image_gallery_id=(value)
22
- self.bootsy_image_gallery = Bootsy::ImageGallery.find value unless value.blank?
22
+ if self.bootsy_image_gallery.nil? && !value.blank?
23
+ ig = Bootsy::ImageGallery.find value
24
+ self.bootsy_image_gallery = ig
25
+ ig.bootsy_resource = self
26
+ ig.save
27
+ end
23
28
  end
24
29
  end
25
30
  end
@@ -1,3 +1,3 @@
1
1
  module Bootsy
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-03 00:00:00.000000000 Z
12
+ date: 2012-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: mini_magick
@@ -34,7 +34,7 @@ dependencies:
34
34
  requirements:
35
35
  - - ~>
36
36
  - !ruby/object:Gem::Version
37
- version: '0.6'
37
+ version: 0.7.0
38
38
  type: :runtime
39
39
  prerelease: false
40
40
  version_requirements: !ruby/object:Gem::Requirement
@@ -42,7 +42,7 @@ dependencies:
42
42
  requirements:
43
43
  - - ~>
44
44
  - !ruby/object:Gem::Version
45
- version: '0.6'
45
+ version: 0.7.0
46
46
  - !ruby/object:Gem::Dependency
47
47
  name: remotipart
48
48
  requirement: !ruby/object:Gem::Requirement
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: '1.0'
53
+ version: 1.0.2
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '1.0'
61
+ version: 1.0.2
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: rails
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
218
  version: '0'
219
219
  segments:
220
220
  - 0
221
- hash: -234283299
221
+ hash: 258846397
222
222
  required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  none: false
224
224
  requirements:
@@ -227,7 +227,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  version: '0'
228
228
  segments:
229
229
  - 0
230
- hash: -234283299
230
+ hash: 258846397
231
231
  requirements: []
232
232
  rubyforge_project:
233
233
  rubygems_version: 1.8.24