it-logica-application-backbone 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.5
1
+ 1.1.6
@@ -1,63 +1,75 @@
1
1
  <div class="page">
2
2
  <%= render :partial => "/helpers/build_table_text_description", :locals => {:settings => settings} %>
3
3
  </div>
4
- <div class="tabs">
5
- <%= yield :table_form_tabs %>
4
+ <% if settings[:display_method]=="print_by_checkboxes" %>
5
+ <div class="print-window-buttons" style="float:right">
6
+ <a class="print_page_functionality print-window-print-dialog-button" href="" onclick="window.print()">
7
+ <i class="icon-print"></i>Tisknout</a>
8
+ <a class="print_page_functionality print-window-close-button" href="" onclick="window.close();">
9
+ <i class="icon-remove"></i>Zavřít</a>
10
+ </div>
11
+ <div style="clear:both"></div>
6
12
 
7
- <div class="info">
13
+ <% end %>
8
14
 
15
+ <% if settings[:display_method].blank? %>
16
+ <div class="tabs">
17
+ <%= yield :table_form_tabs %>
9
18
 
10
- <% if settings[:checkboxes] %>
19
+ <div class="info">
20
+
21
+
22
+ <% if settings[:checkboxes] %>
11
23
  <span>Vybraných řádků: <strong>
12
24
  <span title="Počet označených řádků na všech stránkách" id="<%= settings[:form_id]+ "_active_checkboxes_count" %>">
13
25
  <%= !settings[:params]["checkbox_pool"].blank? ? settings[:params]["checkbox_pool"].split(",").count : 0 %>
14
26
  </span>
15
27
  </strong>
16
28
  </span>
17
- <% end %>
29
+ <% end %>
18
30
 
19
- <% if settings[:display_method].blank? %>
20
- <% if settings[:checkboxes] %>
21
- <script type="text/javascript">
22
- function submit_in_new_window(form_id) {
23
- var form_original = $("#" + form_id);
31
+ <% if settings[:display_method].blank? %>
32
+ <% if settings[:checkboxes] %>
33
+ <script type="text/javascript">
34
+ function submit_in_new_window(form_id) {
35
+ var form_original = $("#" + form_id);
24
36
 
25
- // create new form by cloning without events
26
- var form = form_original.clone(false)
37
+ // create new form by cloning without events
38
+ var form = form_original.clone(false)
27
39
 
28
- // disabling ajax
29
- form.removeAttr("data-remote");
40
+ // disabling ajax
41
+ form.removeAttr("data-remote");
30
42
 
31
- form.attr("target", "_blank");
32
- form.attr("action", form_original.attr("action"));
33
- form.attr("style", "display: none;");
43
+ form.attr("target", "_blank");
44
+ form.attr("action", form_original.attr("action"));
45
+ form.attr("style", "display: none;");
34
46
 
35
- // need to append it to browser html, otherwise it wont send in many browsers (with clone it works only with chrome)
36
- form_original.after(form);
47
+ // need to append it to browser html, otherwise it wont send in many browsers (with clone it works only with chrome)
48
+ form_original.after(form);
37
49
 
38
- //Create an input type dynamically.
39
- var element = document.createElement("input");
50
+ //Create an input type dynamically.
51
+ var element = document.createElement("input");
40
52
 
41
- //Assign different attributes to the element.
42
- element.setAttribute("type", "hidden");
43
- element.setAttribute("value", "print_by_checkboxes");
44
- element.setAttribute("name", "___display_method___");
53
+ //Assign different attributes to the element.
54
+ element.setAttribute("type", "hidden");
55
+ element.setAttribute("value", "print_by_checkboxes");
56
+ element.setAttribute("name", "___display_method___");
45
57
 
46
- //Append the element in form
47
- form.append(element);
58
+ //Append the element in form
59
+ form.append(element);
48
60
 
49
- form.submit();
50
- form.remove();
51
- }
61
+ form.submit();
62
+ form.remove();
63
+ }
52
64
 
53
- </script>
54
- <a href="#" class="btn" onclick="submit_in_new_window('<%= settings[:form_id] %>'); return false;"><i class="icon-print"></i>&nbsp;
55
- Tisknout výběr</a>
65
+ </script>
66
+ <a href="#" class="btn" onclick="submit_in_new_window('<%= settings[:form_id] %>'); return false;"><i class="icon-print"></i>&nbsp;
67
+ Tisknout výběr</a>
68
+ <% end %>
56
69
  <% end %>
57
- <% end %>
58
- </div>
59
- </div>
60
-
70
+ </div>
71
+ </div>
72
+ <% end %>
61
73
  <%= form_tag settings[:filter_path], :html => {:'data-type' => 'html'}, :method => 'POST', :class => 'well dataGrid', :remote => true, :id => settings[:form_id] do |f| %>
62
74
  <% if settings[:display_method].blank? %>
63
75
  <% if content_for?(:table_form) %>
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "it-logica-application-backbone"
8
- s.version = "1.1.5"
8
+ s.version = "1.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Ladas"]
12
- s.date = "2012-10-23"
12
+ s.date = "2012-10-25"
13
13
  s.description = "longer description of your gem"
14
14
  s.email = "ladislav.smola@it-logica.cz"
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: it-logica-application-backbone
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-23 00:00:00.000000000 Z
12
+ date: 2012-10-25 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: htmlentities
16
- requirement: &85141910 !ruby/object:Gem::Requirement
16
+ requirement: &83123760 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *85141910
24
+ version_requirements: *83123760
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: shoulda
27
- requirement: &85141440 !ruby/object:Gem::Requirement
27
+ requirement: &83123200 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *85141440
35
+ version_requirements: *83123200
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rdoc
38
- requirement: &85140980 !ruby/object:Gem::Requirement
38
+ requirement: &83122610 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.12'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *85140980
46
+ version_requirements: *83122610
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bundler
49
- requirement: &85140430 !ruby/object:Gem::Requirement
49
+ requirement: &83500180 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.1.0
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *85140430
57
+ version_requirements: *83500180
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &85139470 !ruby/object:Gem::Requirement
60
+ requirement: &83499820 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.8.4
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *85139470
68
+ version_requirements: *83499820
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: simplecov
71
- requirement: &85138730 !ruby/object:Gem::Requirement
71
+ requirement: &83499390 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *85138730
79
+ version_requirements: *83499390
80
80
  description: longer description of your gem
81
81
  email: ladislav.smola@it-logica.cz
82
82
  executables: []
@@ -599,7 +599,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
599
599
  version: '0'
600
600
  segments:
601
601
  - 0
602
- hash: -1023855853
602
+ hash: 326661299
603
603
  required_rubygems_version: !ruby/object:Gem::Requirement
604
604
  none: false
605
605
  requirements: