caboose-cms 0.4.119 → 0.4.120

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
- YzMxZTViNWM5MWI1ZmI0OTE3NDA4N2Q1ZDJhNTAyZGI4NjU5NzMyMg==
4
+ NDg3MDhiMDM5ZTY0MDkyNWM0M2JkMDQ4MTc5ODYzZmQwMGNhMDk2OA==
5
5
  data.tar.gz: !binary |-
6
- NmE0MTNmZDkxNWNhMWM5ODY3NTE1MjU5ZTZkM2QwMjVhMDliOWJhYg==
6
+ NTNhYzBiYzIxMmY1ZDVlNDQxMzAwNGJjZTJmMTM3Y2EzMWM4YWY1OA==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjViNjJlOTUyZWQyMTYwMzY5YmFhNjhjZWE4ZjQ5MzUxYmUwM2U5MDEwZjky
10
- NzgzZGRmMDk5MjZiOGJjZGExNGRhMGQ0ZWU2MmQzNjJhMTc5ZjMyZTJhMzA5
11
- MGNmMmUxODE5ZWFiMTcxMGJjM2U1YTk5MGYxMTExMmNkZGM3ODc=
9
+ N2M2OTAyOWVkZGVmM2UwMjNmZmY2ZTQ4NWFmMWY1MTBkMDcwMjgzMjU3YWIx
10
+ MTlkODFiY2I2N2Y2OWMxYzU4YmUzMDNlNTU3ZjEwNjZjZWEyNGI3YTY5OWVl
11
+ MzQxNGM1MzRlNWE2ZTgwMGZmMjY5ZjEyZmYwMjIxOTY2ZWU0NTk=
12
12
  data.tar.gz: !binary |-
13
- MTExMzBjODA3Y2Y0Mjk5NmY0YjQ2YzFlOWZmNDZiYmI2M2VmZDAyZDlkNjFl
14
- NjFmZGRmMGU3NDRkMDVhNTI3MTAyMDljMWJmODQyMzY1MTY3MzM0ZmRkNWY5
15
- ODAzNGI5NTRjZWFmMGZjYjZiYzk0OTRjNjlkNWE4NTg4YTkzNjU=
13
+ NzQ2N2U2NDJjMzU4YTEyMjRmNTNlOThhNWM4MDkwZjI1ZGIyOWFkZTdkYjBh
14
+ YTg0NGM0Nzg2Y2RmMjc3M2UwMjUwMjdlZjQ3ZDA0YmQ5OWFiNmQ3NDYzNWFj
15
+ MTUxNDY0YjYzY2ZlMWRiY2VjMGU2MTEyYzRhZGQ5ZTY2MmExM2I=
@@ -251,11 +251,21 @@ IndexTable.prototype = {
251
251
  });
252
252
  if (field.name == that.quick_edit_field)
253
253
  input.prop('checked', 'true');
254
- tr.append($('<th/>').append(input).append('<br/>')
254
+ tr.append($('<th/>')
255
+ .append(input).append('<br/>')
255
256
  .append($('<a/>')
257
+ .attr('id', 'quick_edit_' + field.name).val(field.name)
256
258
  .attr('href', link)
257
259
  .data('sort', s)
258
- .html(field.nice_name + arrow)
260
+ .html(field.nice_name + arrow)
261
+ //.mousedown(function(e) {
262
+ // if (e.which == 3) // right click
263
+ // {
264
+ // var field_name = $(this).attr('id').replace('quick_edit_', '');
265
+ // that.quick_edit_field = that.quick_edit_field == field_name ? false : field_name;
266
+ // that.refresh();
267
+ // }
268
+ //})
259
269
  )
260
270
  );
261
271
  }
@@ -211,6 +211,6 @@ module Caboose
211
211
  end
212
212
  return false
213
213
  end
214
-
214
+
215
215
  end
216
216
  end
@@ -16,6 +16,20 @@ class Caboose::SmtpConfig < ActiveRecord::Base
16
16
 
17
17
  AUTH_PLAIN = 'plain'
18
18
  AUTH_LOGIN = 'login'
19
- AUTH_MD5 = 'cram_md5'
19
+ AUTH_MD5 = 'cram_md5'
20
+
21
+ def self.configure_mailer_for_site(mailer, site_id)
22
+ c = self.where(:site_id => site_id).first
23
+
24
+ mailer.smtp_settings['user_name'] = c.user_name
25
+ mailer.smtp_settings['password'] = c.password
26
+ mailer.smtp_settings['address'] = c.address
27
+ mailer.smtp_settings['port'] = c.port
28
+ mailer.smtp_settings['domain'] = c.domain
29
+ mailer.smtp_settings['authentication'] = c.authentication
30
+ mailer.smtp_settings['enable_starttls_auto'] = c.enable_starttls_auto
31
+
32
+ return mailer
33
+ end
20
34
 
21
35
  end
@@ -1,3 +1,3 @@
1
1
  module Caboose
2
- VERSION = '0.4.119'
2
+ VERSION = '0.4.120'
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.4.119
4
+ version: 0.4.120
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Barry
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-09-22 00:00:00.000000000 Z
11
+ date: 2014-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails