easy_admin_ui 0.2.12 → 0.3.0

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.
data/README CHANGED
@@ -10,7 +10,7 @@ Requirements
10
10
  * formtastic
11
11
  * will_paginate
12
12
 
13
- Tested with Rails 3.0.1.
13
+ Tested with Rails 3.0.4. Requires jquery.
14
14
 
15
15
  To Do
16
16
  =====
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.12
1
+ 0.3.0
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{easy_admin_ui}
8
- s.version = "0.2.12"
8
+ s.version = "0.3.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Martin Moen Wulffeld"]
12
- s.date = %q{2011-02-07}
12
+ s.date = %q{2011-03-15}
13
13
  s.description = %q{Very simple DRY admin UI.}
14
14
  s.email = %q{martin@wulffeld.org}
15
15
  s.extra_rdoc_files = [
@@ -66,7 +66,7 @@ module EasyAdminUi
66
66
  response_for :destroy do |format|
67
67
  format.js do
68
68
  render :update do |page|
69
- page.remove "tr_#{current_model_name.underscore}_#{@item.id}"
69
+ page << "$('#tr_#{current_model_name.underscore}_#{@item.id}').remove();"
70
70
  end
71
71
  end
72
72
  end
@@ -90,10 +90,10 @@ module EasyAdminUi
90
90
 
91
91
  def delete_link_with_confirmation(obj, delete_path=nil)
92
92
  delete_path ||= eval("#{obj.class.to_s.underscore.singularize}_path(obj)")
93
- link_to_function(image_tag('/images/icons/delete.png'), "$('cnf_#{obj.id}').show();") + ' ' +
93
+ link_to_function(image_tag('/images/icons/delete.png'), "$('#cnf_#{obj.id}').show();") + ' ' +
94
94
  raw('<span id="cnf_' + obj.id.to_s + '" class="conf_link" style="display: none;">Are you sure? ') +
95
95
  link_to("Yes", delete_path, :method => :delete, :remote => true) + ' ' +
96
- link_to_function("No", "$('cnf_#{obj.id}').hide();") + raw('</span>')
96
+ link_to_function("No", "$('#cnf_#{obj.id}').hide();") + raw('</span>')
97
97
  end
98
98
  end
99
99
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_admin_ui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 12
10
- version: 0.2.12
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Martin Moen Wulffeld
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-07 00:00:00 +01:00
18
+ date: 2011-03-15 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency