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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZTZmMTJmMzc3ZmZmMmNiYjJkY2I3MDk3NmMyZWJjOTZiZTZiM2NhMg==
4
+ YzMxZTViNWM5MWI1ZmI0OTE3NDA4N2Q1ZDJhNTAyZGI4NjU5NzMyMg==
5
5
  data.tar.gz: !binary |-
6
- Mzg2OTJjZDFmM2NjOGNkZmQ1YjMwOWVjMTE0OTFmZTVkMWNiOTg2Mg==
6
+ NmE0MTNmZDkxNWNhMWM5ODY3NTE1MjU5ZTZkM2QwMjVhMDliOWJhYg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- ZTE3NmE3MWUyN2Y2MmU3ZDhjMWE4OTI2ZWQwNGU0OTFiZDg1Y2Y3ZWY3Mzg4
10
- MTNlNzdmMzA1ODdmZjllYmQ1NGI3NzZmZjY2NWRiYzAwNjJiN2ZlN2E0MjI0
11
- MjgxOGQ4MTI5MTBkNzE5MjVhMTdhMDJmODVlNmYxODMzZjk2OWM=
9
+ YjViNjJlOTUyZWQyMTYwMzY5YmFhNjhjZWE4ZjQ5MzUxYmUwM2U5MDEwZjky
10
+ NzgzZGRmMDk5MjZiOGJjZGExNGRhMGQ0ZWU2MmQzNjJhMTc5ZjMyZTJhMzA5
11
+ MGNmMmUxODE5ZWFiMTcxMGJjM2U1YTk5MGYxMTExMmNkZGM3ODc=
12
12
  data.tar.gz: !binary |-
13
- MjBhYzg5ODA3ZGFiNTU1YzI1ZTEzY2Y3Mzk2NDhlMDBlODE1YzhjOTYwYzkw
14
- NTdiNmU2ZTU5N2NjZDlkNmY3NDNmM2Y4NWEyMzQ2OTlhMDcyNzNmZTA5NWJl
15
- M2IxY2IyZjBjYzQ5MWQ1N2E1NDdjZWJiNjdlYTc1MGEyNTI1ZjU=
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 arrow = that.pager_params.sort == field.sort ? (parseInt(that.pager_params.desc) == 1 ? ' ↑' : ' ↓') : '';
241
- //var link = url + "sort=" + field.sort + "&desc=" + (that.pager_params.sort == field.sort ? (parseInt(that.pager_params.desc) == 1 ? '0' : '1') : '0');
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: field.sort,
245
- desc: (that.pager_params.sort == field.sort ? (parseInt(that.pager_params.desc) == 1 ? '0' : '1') : '0')
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', field.sort)
257
+ .data('sort', s)
259
258
  .html(field.nice_name + arrow)
260
259
  )
261
260
  );
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.118'
2
+ VERSION = '0.4.119'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.118
4
+ version: 0.4.119
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry