active_scaffold_vho 3.1.5 → 3.1.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,11 +1,11 @@
1
- $('form.as_form, form.inplace_form').live('as:form_loaded', function(event) {
1
+ $(document).on('as:form_loaded', 'form.as_form, form.inplace_form', function(event) {
2
2
  var as_form = $(this).closest("form");
3
3
  as_form.find('textarea.as_mceEditor').each(function(index, elem) {
4
4
  tinyMCE.execCommand('mceAddControl', false, $(elem).attr('id'));
5
5
  });
6
6
  return true;
7
7
  });
8
- $('form.as_form, form.inplace_form').live('as:form_submit', function(event) {
8
+ $(document).on('as:form_submit', 'form.as_form, form.inplace_form', function(event) {
9
9
  var as_form = $(this).closest("form");
10
10
  if (as_form.has('textarea.as_mceEditor').length > 0) {
11
11
  tinyMCE.triggerSave();
@@ -13,7 +13,7 @@ $('form.as_form, form.inplace_form').live('as:form_submit', function(event) {
13
13
  return true;
14
14
  });
15
15
 
16
- $('form.as_form, form.inplace_form').live('as:form_unloaded', function(event) {
16
+ $(document).on('as:form_unloaded', 'form.as_form, form.inplace_form', function(event) {
17
17
  var as_form = $(this).closest("form");
18
18
  as_form.find('textarea.as_mceEditor').each(function(index, elem) {
19
19
  tinyMCE.execCommand('mceRemoveControl', false, $(elem).attr('id'));
@@ -562,10 +562,10 @@ padding-left: 5px;
562
562
  border-left: solid 1px #ccc;
563
563
  }
564
564
 
565
- .active-scaffold-footer .previous {
566
- margin-right: 0;
567
- padding-right: 5px;
568
- border-right: solid 1px #ccc;
565
+ .active-scaffold-footer .prev {
566
+ margin-right: 3px;
567
+ padding-right: 3px;
568
+ border-right: solid 1px #ccc;
569
569
  }
570
570
 
571
571
  /* Messages
@@ -994,7 +994,6 @@ font-size: 100%;
994
994
  }
995
995
 
996
996
  .active-scaffold-found {
997
- float:left;
998
997
  }
999
998
 
1000
999
  .as_touch a.inline-adapter-close {
@@ -1003,7 +1002,7 @@ height: 27px;
1003
1002
  background: url(<%= asset_data_uri 'close_touch.png' %>) 0 0 no-repeat;
1004
1003
  }
1005
1004
 
1006
- .as_touch .as_paginate {
1005
+ .as_touch .active-scaffold-pagination a {
1007
1006
  font-size: 20px;
1008
1007
  padding: 3px 10px;
1009
1008
  }
@@ -1,6 +1,10 @@
1
1
  .ui-timepicker-div .ui-widget-header { margin-bottom: 8px; }
2
2
  .ui-timepicker-div dl { text-align: left; }
3
- .ui-timepicker-div dl dt { height: 25px; }
4
- .ui-timepicker-div dl dd { margin: -25px 10px 10px 65px; }
3
+ .ui-timepicker-div dl dt { height: 25px; margin-bottom: -25px; }
4
+ .ui-timepicker-div dl dd { margin: 0 10px 10px 65px; }
5
5
  .ui-timepicker-div td { font-size: 90%; }
6
6
  .ui-tpicker-grid-label { background: none; border: none; margin: 0; padding: 0; }
7
+
8
+ .ui-timepicker-rtl{ direction: rtl; }
9
+ .ui-timepicker-rtl dl { text-align: right; }
10
+ .ui-timepicker-rtl dl dd { margin: 0 65px 10px 10px; }
@@ -1,7 +1,6 @@
1
1
  <% columns.each do |column| %>
2
2
  <% authorized = record.authorized_for_read_column?(column.name) -%>
3
3
  <% column_value = authorized ? get_column_value(record, column) : active_scaffold_config.list.empty_field_text -%>
4
-
5
4
  <td class="<%= column_class(column, column_value, record) %>" >
6
5
  <%= authorized ? render_list_column(column_value, column, record) : column_value %>
7
6
  </td>
@@ -1,11 +1,7 @@
1
1
  <%= render :partial => 'list_record', :locals => {:record => record}%>
2
2
  <% if active_scaffold_config.list.columns.any? {|c| c.calculation?} %>
3
3
  <script type="text/javascript">
4
- //<![CDATA[
5
- <%= update_page do |page|
6
- page.call 'ActiveScaffold.replace', active_scaffold_calculations_id, render(:partial => 'list_calculations')
7
- end %>
8
- //]]>
4
+ ActiveScaffold.replace('<%=active_scaffold_calculations_id%>', '<%=escape_javascript(render(:partial => 'list_calculations'))%>');
9
5
  </script>
10
6
  <% end %>
11
7
 
@@ -33,8 +33,7 @@ module ActiveScaffold::Actions
33
33
  end
34
34
  end
35
35
  def list_respond_to_js
36
- if params[:embedded]
37
- params.delete(:embedded)
36
+ if params.delete(:embedded)
38
37
  render(:partial => 'list_with_header')
39
38
  else
40
39
  render :action => 'list.js'
@@ -65,7 +64,7 @@ module ActiveScaffold::Actions
65
64
 
66
65
  options = { :sorting => active_scaffold_config.list.user.sorting,
67
66
  :count_includes => active_scaffold_config.list.user.count_includes }
68
- paginate = (params[:format].nil?) ? (accepts? :html, :js) : ['html', 'js'].include?(params[:format])
67
+ paginate = (params[:format].nil?) ? (accepts? :html, :js) : ['html', 'js'].include?(params[:format].to_s)
69
68
  if paginate
70
69
  options.merge!({
71
70
  :per_page => active_scaffold_config.list.user.per_page,
@@ -83,7 +83,7 @@ module ActiveScaffold::Actions
83
83
 
84
84
  def beginning_of_chain
85
85
  if nested? && nested.association && nested.association.collection?
86
- nested.parent_scope.send(nested.association.name)
86
+ nested.parent_scope.send(nested.association.name).where("")
87
87
  elsif nested? && nested.scope
88
88
  nested.parent_scope.send(nested.scope)
89
89
  else
@@ -3,11 +3,11 @@ module ActiveScaffold
3
3
  module AssociationHelpers
4
4
  # Provides a way to honor the :conditions on an association while searching the association's klass
5
5
  def association_options_find(association, conditions = nil)
6
- association.klass.where(conditions).where(association.options[:conditions]).all
6
+ association.klass.where(conditions).where(association.options[:conditions])
7
7
  end
8
8
 
9
9
  def association_options_count(association, conditions = nil)
10
- association.klass.where(conditions).where(association.options[:conditions]).count
10
+ association_options_find(association, conditions).count
11
11
  end
12
12
 
13
13
  # returns options for the given association as a collection of [id, label] pairs intended for the +options_for_select+ helper.
@@ -2,7 +2,7 @@ module ActiveScaffold
2
2
  module Version
3
3
  MAJOR = 3
4
4
  MINOR = 1
5
- PATCH = 5
5
+ PATCH = 6
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
metadata CHANGED
@@ -1,105 +1,81 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_vho
3
- version: !ruby/object:Gem::Version
4
- hash: 9
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.1.6
5
5
  prerelease:
6
- segments:
7
- - 3
8
- - 1
9
- - 5
10
- version: 3.1.5
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Many, see README
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-11-03 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
21
- requirement: &id001 !ruby/object:Gem::Requirement
12
+ date: 2013-01-28 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: shoulda
16
+ requirement: &5201540 !ruby/object:Gem::Requirement
22
17
  none: false
23
- requirements:
24
- - - ">="
25
- - !ruby/object:Gem::Version
26
- hash: 3
27
- segments:
28
- - 0
29
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
30
22
  type: :development
31
- name: shoulda
32
- version_requirements: *id001
33
23
  prerelease: false
34
- - !ruby/object:Gem::Dependency
35
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: *5201540
25
+ - !ruby/object:Gem::Dependency
26
+ name: bundler
27
+ requirement: &5165600 !ruby/object:Gem::Requirement
36
28
  none: false
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- hash: 23
41
- segments:
42
- - 1
43
- - 0
44
- - 0
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
45
32
  version: 1.0.0
46
33
  type: :development
47
- name: bundler
48
- version_requirements: *id002
49
34
  prerelease: false
50
- - !ruby/object:Gem::Dependency
51
- requirement: &id003 !ruby/object:Gem::Requirement
35
+ version_requirements: *5165600
36
+ - !ruby/object:Gem::Dependency
37
+ name: rcov
38
+ requirement: &5157800 !ruby/object:Gem::Requirement
52
39
  none: false
53
- requirements:
54
- - - ">="
55
- - !ruby/object:Gem::Version
56
- hash: 3
57
- segments:
58
- - 0
59
- version: "0"
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: '0'
60
44
  type: :development
61
- name: rcov
62
- version_requirements: *id003
63
45
  prerelease: false
64
- - !ruby/object:Gem::Dependency
65
- requirement: &id004 !ruby/object:Gem::Requirement
46
+ version_requirements: *5157800
47
+ - !ruby/object:Gem::Dependency
48
+ name: rails
49
+ requirement: &5155320 !ruby/object:Gem::Requirement
66
50
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 3
73
- - 1
74
- - 0
51
+ requirements:
52
+ - - ! '>='
53
+ - !ruby/object:Gem::Version
75
54
  version: 3.1.0
76
55
  type: :runtime
77
- name: rails
78
- version_requirements: *id004
79
56
  prerelease: false
80
- - !ruby/object:Gem::Dependency
81
- requirement: &id005 !ruby/object:Gem::Requirement
57
+ version_requirements: *5155320
58
+ - !ruby/object:Gem::Dependency
59
+ name: kaminari
60
+ requirement: &5153520 !ruby/object:Gem::Requirement
82
61
  none: false
83
- requirements:
84
- - - ">="
85
- - !ruby/object:Gem::Version
86
- hash: 3
87
- segments:
88
- - 0
89
- version: "0"
62
+ requirements:
63
+ - - ! '>='
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
90
66
  type: :runtime
91
- name: kaminari
92
- version_requirements: *id005
93
67
  prerelease: false
94
- description: Save time and headaches, and create a more easily maintainable set of pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read, update, delete) user interface needs, leaving you more time to focus on more challenging (and interesting!) problems.
68
+ version_requirements: *5153520
69
+ description: Save time and headaches, and create a more easily maintainable set of
70
+ pages, with ActiveScaffold. ActiveScaffold handles all your CRUD (create, read,
71
+ update, delete) user interface needs, leaving you more time to focus on more challenging
72
+ (and interesting!) problems.
95
73
  email: activescaffold@googlegroups.com
96
74
  executables: []
97
-
98
75
  extensions: []
99
-
100
- extra_rdoc_files:
76
+ extra_rdoc_files:
101
77
  - README
102
- files:
78
+ files:
103
79
  - .autotest
104
80
  - .document
105
81
  - .gitignore
@@ -390,39 +366,34 @@ files:
390
366
  - test/test_helper.rb
391
367
  - uninstall.rb
392
368
  homepage: http://github.com/vhochstein/active_scaffold
393
- licenses:
369
+ licenses:
394
370
  - MIT
395
371
  post_install_message:
396
372
  rdoc_options: []
397
-
398
- require_paths:
373
+ require_paths:
399
374
  - lib
400
- required_ruby_version: !ruby/object:Gem::Requirement
375
+ required_ruby_version: !ruby/object:Gem::Requirement
401
376
  none: false
402
- requirements:
403
- - - ">="
404
- - !ruby/object:Gem::Version
405
- hash: 3
406
- segments:
377
+ requirements:
378
+ - - ! '>='
379
+ - !ruby/object:Gem::Version
380
+ version: '0'
381
+ segments:
407
382
  - 0
408
- version: "0"
409
- required_rubygems_version: !ruby/object:Gem::Requirement
383
+ hash: -3291551366358840762
384
+ required_rubygems_version: !ruby/object:Gem::Requirement
410
385
  none: false
411
- requirements:
412
- - - ">="
413
- - !ruby/object:Gem::Version
414
- hash: 3
415
- segments:
416
- - 0
417
- version: "0"
386
+ requirements:
387
+ - - ! '>='
388
+ - !ruby/object:Gem::Version
389
+ version: '0'
418
390
  requirements: []
419
-
420
391
  rubyforge_project:
421
392
  rubygems_version: 1.8.17
422
393
  signing_key:
423
394
  specification_version: 3
424
395
  summary: Rails 3 Version of activescaffold supporting prototype and jquery
425
- test_files:
396
+ test_files:
426
397
  - test/bridges/bridge_test.rb
427
398
  - test/config/base_test.rb
428
399
  - test/config/create_test.rb