incline 0.2.13 → 0.2.14

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9190b8771a8a714428aced1fcfe7bfc14805898b
4
- data.tar.gz: ef48cd977e79ac87f6dbf9100d5697b13ea5b636
3
+ metadata.gz: bf040c758d3c9d16281ecb31a9717d2567946617
4
+ data.tar.gz: 36e956d34e0835257aff3e0196519fe23d53d74c
5
5
  SHA512:
6
- metadata.gz: ad6466b33890e04ec20f51901b5fb2c67d8c638742de3621c218687a95e61b90e08d632d4e3965f6efdad2773ff08465537f7f04df0a9b6f95bebc821cdef3a4
7
- data.tar.gz: 251f92afc831778e5e06be80165db66b9f2217919f1ab5d0502c4f6dda0ec7d8f66eab031781f52f7d8c1fb011db6d50a2ce5eb764ee49c638fd0406e090ad2a
6
+ metadata.gz: 0ba2d1dace409afd8b3b06ddf65310219b09e0812e249379172a0da2bf9c6ad49400defa5e3833c2469d454540b40c8f88dcde3430e9a621014bbbae2d46d5a9
7
+ data.tar.gz: 5bc80a718d8ac2a97ade503a98eb927bd346da0319da7c2636e6a5b20b51858fa59f0ae9f84348190cf51403c6888a9fba142d52cb3cdea757086ca64f0752ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- incline (0.2.13)
4
+ incline (0.2.14)
5
5
  ansi (~> 1.5.0)
6
6
  bcrypt
7
7
  bootstrap-sass
@@ -1,3 +1,3 @@
1
1
  module Incline
2
- VERSION = "0.2.13"
2
+ VERSION = "0.2.14"
3
3
  end
@@ -54,12 +54,15 @@
54
54
  data: function (row, type, set, meta) {
55
55
  if (type === 'display') {
56
56
  var ret = '<div class="text-right">';
57
+ var p_start = row.DT_Path.indexOf('?');
58
+ var item_path = p_start >= 0 ? row.DT_Path.substr(0, p_start) : row.DT_Path;
59
+ var item_params = p_start >= 0 ? row.DT_Path.substr(p_start) : '';
57
60
 
58
61
  // the show icon.
59
62
  ret += '<a href="javascript:inlineForm(\'' + row.DT_Path + '\')" title="Details" class="btn btn-default btn-xs"><i class="glyphicon glyphicon-zoom-in"></i></a>';
60
63
 
61
64
  // the edit icon.
62
- ret += '<a href="javascript:inlineForm(\'' + row.DT_Path + '/edit\')" title="Edit" class="btn btn-default btn-xs"><i class="glyphicon glyphicon-pencil"></i></a>';
65
+ ret += '<a href="javascript:inlineForm(\'' + item_path + '/edit' + item_params + '\')" title="Edit" class="btn btn-default btn-xs"><i class="glyphicon glyphicon-pencil"></i></a>';
63
66
 
64
67
  // the delete icon.
65
68
  ret += '<a href="javascript:inlineAction(\'' + row.DT_Path + '\',\'delete\')" title="Remove" class="btn btn-danger btn-xs" data-confirm="Are you sure you want to remove this <%= singular_table_name.humanize %>?"><i class="glyphicon glyphicon-trash"></i></a>';
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: incline
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.13
4
+ version: 0.2.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Beau Barker