caboose-cms 0.4.118 → 0.4.119
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/app/assets/javascripts/caboose/model/index_table.js +5 -6
- data/lib/caboose/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzMxZTViNWM5MWI1ZmI0OTE3NDA4N2Q1ZDJhNTAyZGI4NjU5NzMyMg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NmE0MTNmZDkxNWNhMWM5ODY3NTE1MjU5ZTZkM2QwMjVhMDliOWJhYg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjViNjJlOTUyZWQyMTYwMzY5YmFhNjhjZWE4ZjQ5MzUxYmUwM2U5MDEwZjky
|
10
|
+
NzgzZGRmMDk5MjZiOGJjZGExNGRhMGQ0ZWU2MmQzNjJhMTc5ZjMyZTJhMzA5
|
11
|
+
MGNmMmUxODE5ZWFiMTcxMGJjM2U1YTk5MGYxMTExMmNkZGM3ODc=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MTExMzBjODA3Y2Y0Mjk5NmY0YjQ2YzFlOWZmNDZiYmI2M2VmZDAyZDlkNjFl
|
14
|
+
NjFmZGRmMGU3NDRkMDVhNTI3MTAyMDljMWJmODQyMzY1MTY3MzM0ZmRkNWY5
|
15
|
+
ODAzNGI5NTRjZWFmMGZjYjZiYzk0OTRjNjlkNWE4NTg4YTkzNjU=
|
@@ -237,12 +237,11 @@ IndexTable.prototype = {
|
|
237
237
|
$.each(this.fields, function(i, field) {
|
238
238
|
if (field.show)
|
239
239
|
{
|
240
|
-
var
|
241
|
-
|
242
|
-
//var link = that.pager_url({
|
240
|
+
var s = field.sort ? field.sort : field.name;
|
241
|
+
var arrow = that.pager_params.sort == s ? (parseInt(that.pager_params.desc) == 1 ? ' ↑' : ' ↓') : '';
|
243
242
|
var link = that.pager_hash({
|
244
|
-
sort:
|
245
|
-
desc: (that.pager_params.sort ==
|
243
|
+
sort: s,
|
244
|
+
desc: (that.pager_params.sort == s ? (parseInt(that.pager_params.desc) == 1 ? '0' : '1') : '0')
|
246
245
|
});
|
247
246
|
|
248
247
|
var input = $('<input/>').attr('type', 'checkbox').attr('id', 'quick_edit_' + field.name).val(field.name)
|
@@ -255,7 +254,7 @@ IndexTable.prototype = {
|
|
255
254
|
tr.append($('<th/>').append(input).append('<br/>')
|
256
255
|
.append($('<a/>')
|
257
256
|
.attr('href', link)
|
258
|
-
.data('sort',
|
257
|
+
.data('sort', s)
|
259
258
|
.html(field.nice_name + arrow)
|
260
259
|
)
|
261
260
|
);
|
data/lib/caboose/version.rb
CHANGED