hallo_rails 0.0.5 → 0.0.6

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.
@@ -1,3 +1,3 @@
1
1
  module HalloRails
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
@@ -1837,15 +1837,15 @@
1837
1837
  $('#hallo_img_file_select_title').text('');
1838
1838
  }
1839
1839
  }
1840
+ this.options.dialog.bind('dialogclose', function() {
1841
+ var scrollbar_pos;
1842
+ $('label', _this.button).removeClass('ui-state-active');
1843
+ scrollbar_pos = $(document).scrollTop();
1844
+ _this.options.editable.element.focus();
1845
+ $(document).scrollTop(scrollbar_pos);
1846
+ return _this.options.editable.keepActivated(false);
1847
+ });
1840
1848
  if (this.options.insert_file_dialog_ui_url && !this.dialog_image_selection_ui_loaded) {
1841
- this.options.dialog.bind('dialogclose', function() {
1842
- var scrollbar_pos;
1843
- $('label', _this.button).removeClass('ui-state-active');
1844
- scrollbar_pos = $(document).scrollTop();
1845
- _this.options.editable.element.focus();
1846
- $(document).scrollTop(scrollbar_pos);
1847
- return _this.options.editable.keepActivated(false);
1848
- });
1849
1849
  this.options.dialog.on('click', ".reload_link", function() {
1850
1850
  widget._load_dialog_image_selection_ui();
1851
1851
  return false;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hallo_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -59,7 +59,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
59
59
  version: '0'
60
60
  segments:
61
61
  - 0
62
- hash: -584789263880855248
62
+ hash: 3288430876181110642
63
63
  required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  none: false
65
65
  requirements:
@@ -68,7 +68,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  segments:
70
70
  - 0
71
- hash: -584789263880855248
71
+ hash: 3288430876181110642
72
72
  requirements: []
73
73
  rubyforge_project:
74
74
  rubygems_version: 1.8.24