caboose-cms 0.9.65 → 0.9.66

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: 43c2ed33475916c5efe2be842f8e5a137df67193
4
- data.tar.gz: 8a007a1ba9b5c3ad862556e5b8f73f51a1c56a6c
3
+ metadata.gz: a0afdc9f0e0904833b2380d20bf1a35814366856
4
+ data.tar.gz: 25b2fe1b47faf2e39972325e8c786cfd3f5d063f
5
5
  SHA512:
6
- metadata.gz: 3567182432fb5692a20afacb95bf389de0aa72e111c658b1e8e46e57b46d80a2abfce355429e2daa2ffa34e4f3309e53914d7db034b274fd9a998792b51dc915
7
- data.tar.gz: 1d27765dfd78b35fd1155f63e87716c2b3df93d42de2841bc6dbc014df0af7056659f2f80b6cbad35132eb3dad2b1d05048806bc54c1034a6ab77e9aab4ddbee
6
+ metadata.gz: b6f14540e8960126da59abc17298056c71344e1561870c5734e5ba9d62f91c67a1ff10a36b99b67b0c8a6eae858b7b0d572ab0f11dbe2e4c57fcdcf5fcb8a083
7
+ data.tar.gz: f3da6c74e2f3ad916ebb7100a5178f92b1a8f9ffb899d30735943c7b689e278ca440e64d9d9284a10fba6dc318a1b980bd1ca92dcad37bed3d075a46f4447ce8
@@ -644,7 +644,7 @@ module Caboose
644
644
  query = params[:query]
645
645
  resp = Caboose::StdClass.new({'products' => {}})
646
646
  if query && !query.blank?
647
- resp.products = Product.select('title, id').where(:site_id => @site.id).where('title ILIKE (?)',"%#{query}%").order(:title).limit(30)
647
+ resp.products = Product.select('title, id').where(:status => 'Active').where(:site_id => @site.id).where('title ILIKE (?)',"%#{query}%").order(:title).limit(30)
648
648
  end
649
649
  render :json => resp
650
650
  end
@@ -72,7 +72,7 @@ function add_product_to_category(product_id, title) {
72
72
  success: function(resp) {
73
73
  $("#product-results").html("");
74
74
  if ( resp && resp.success ) {
75
- var a = $("<a />").attr('href','/admin/products' + product_id + '/general').text(title);
75
+ var a = $("<a />").attr('href','/admin/products/' + product_id + '/general').text(title);
76
76
  var li = $("<li />").append(a);
77
77
  $("#cat-products").append(li);
78
78
  $("#message").html("<p class='note success'>Product added to category.</p>");
@@ -88,9 +88,7 @@ $("#product-finder").keyup(function() {
88
88
  if ( q && q != '' ) {
89
89
  $.ajax({
90
90
  url: '/api/products/keyword',
91
- data: {
92
- query: q
93
- },
91
+ data: { query: q },
94
92
  type: 'get',
95
93
  success: function(resp) {
96
94
  if ( resp && resp.products && resp.products.length > 0 ) {
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.9.65'
2
+ VERSION = '0.9.66'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: caboose-cms
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.65
4
+ version: 0.9.66
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-04 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg