incline 0.2.13 → 0.2.14
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/incline/version.rb +1 -1
- data/lib/templates/erb/scaffold/_list.html.erb +4 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bf040c758d3c9d16281ecb31a9717d2567946617
|
4
|
+
data.tar.gz: 36e956d34e0835257aff3e0196519fe23d53d74c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0ba2d1dace409afd8b3b06ddf65310219b09e0812e249379172a0da2bf9c6ad49400defa5e3833c2469d454540b40c8f88dcde3430e9a621014bbbae2d46d5a9
|
7
|
+
data.tar.gz: 5bc80a718d8ac2a97ade503a98eb927bd346da0319da7c2636e6a5b20b51858fa59f0ae9f84348190cf51403c6888a9fba142d52cb3cdea757086ca64f0752ba
|
data/Gemfile.lock
CHANGED
data/lib/incline/version.rb
CHANGED
@@ -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(\'' +
|
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>';
|