easy_admin_ui 0.7.4 → 0.7.5

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: d4416d5d4a3a3cd56c38ceb3380d0810faa94b0a
4
- data.tar.gz: dc6647559dcf5346461b01967474bc173e8de5bd
3
+ metadata.gz: 9e980461cdc7c927962f8740dcd4b75b0db28ff5
4
+ data.tar.gz: 39672fac7dca49a625384454de42711e9c641133
5
5
  SHA512:
6
- metadata.gz: 4078e12aace52a38b4cfe40bee6269da075b241e8bedcdc8793a4b448dcea5330e00c887d2c950658d4fc18c7e60a93d5b6aa15da3847aef8c3fa0fcfc7d3b31
7
- data.tar.gz: 5adc9dfd43fe80c05ce0887d82afc3ac03341540fb3d5bb0be25741bc53ee8289bf9749e80f83f804f93c92d21760904ff868ef5514633050f4a08859212b6fd
6
+ metadata.gz: 931f98ebb01729c205bdf5ac06dd1d60d25bf90762b0f077d3c7ad88c7a6bf0bf003c71ddab02645b91565d735c39e2a278bda08a69eb42d1d53d34bee6ac7f2
7
+ data.tar.gz: 7c81fc7541c06ae53c0c6eb3ba2427d5d85f02f0b94cc6370f2c37103a26afc46779ed7bd165030ff9ffb04823052a994e7e7c60a885a57cdb563a47a9702e36
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- easy_admin_ui (0.7.4)
4
+ easy_admin_ui (0.7.5)
5
5
  formtastic (>= 2.2.1)
6
6
  kaminari (>= 0.12.4)
7
7
  rails (>= 4.0.0)
@@ -11,7 +11,7 @@ $(document).ready(function() {
11
11
  var a_link = $(e.target).parent('a')
12
12
  var obj_id = a_link.attr('data-id')
13
13
 
14
- a_link.after(confirm_html.replace(/OBJID/g, obj_id).replace(/DELETE_URL/, window.location + '/' + obj_id))
14
+ a_link.after(confirm_html.replace(/OBJID/g, obj_id).replace(/DELETE_URL/, window.location.protocol + '//' + window.location.hostname + window.location.pathname + '/' + obj_id))
15
15
 
16
16
  a_link.siblings('#confirm_delete_' + obj_id).show()
17
17
  });
@@ -87,7 +87,7 @@ module EasyAdminUi
87
87
 
88
88
  def delete_link_with_confirmation(obj, delete_path=nil)
89
89
  delete_path ||= eval("#{obj.class.to_s.underscore.singularize}_path(obj)")
90
- link_to(delete_icon_image_tag, '', class: "admin_delete", 'data-id' => obj.id.to_s)
90
+ link_to(delete_icon_image_tag, '', class: "admin_delete", 'data-id' => obj.to_param)
91
91
  end
92
92
 
93
93
  def partial_exists?(filename)
@@ -1,3 +1,3 @@
1
1
  module EasyAdminUi
2
- VERSION = '0.7.4'
2
+ VERSION = '0.7.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_admin_ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.4
4
+ version: 0.7.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Martin Moen Wulffeld
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-15 00:00:00.000000000 Z
11
+ date: 2014-02-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler