enju_circulation 0.0.66 → 0.0.67

Sign up to get free protection for your applications and to get access to all the features.
@@ -7,9 +7,8 @@ class Checkin < ActiveRecord::Base
7
7
  belongs_to :librarian, :class_name => 'User'
8
8
  belongs_to :basket
9
9
 
10
- validates_uniqueness_of :item_id, :scope => :basket_id, :message => I18n.t('checkin.already_checked_in')
11
- validates_presence_of :item_id, :message => I18n.t('checkin.item_not_found')
12
- validates_presence_of :basket_id
10
+ validates_uniqueness_of :item_id, :scope => :basket_id
11
+ validates_presence_of :item_id, :basket_id
13
12
  validate :available_for_checkin?, :on => :create
14
13
 
15
14
  attr_accessor :item_identifier
@@ -17,7 +17,7 @@
17
17
  <%= f.submit t('page.read') -%>
18
18
  </div>
19
19
  <%- end -%>
20
- <%= javascript_tag("$('#basket_user_number').focus()") -%>
20
+ <%= javascript_tag("$('#basket_user_number').focus().select();") -%>
21
21
  </div>
22
22
  </div>
23
23
 
@@ -9,7 +9,8 @@
9
9
  <%= f.submit t('page.read'), 'data-disable-with' => t('page.saving') -%>
10
10
  </p>
11
11
  <%- end -%>
12
- <%= javascript_tag("$('#checked_item_item_identifier').focus()") -%>
12
+
13
+ <%= javascript_tag("$('#checked_item_item_identifier').focus().select();") %>
13
14
  </div>
14
15
 
15
16
  <%= render 'checked_item' %>
@@ -36,4 +36,5 @@
36
36
  <%- end -%>
37
37
  </table>
38
38
 
39
- <%= javascript_tag("$('#checkin_item_identifier').focus()") -%>
39
+ <%= javascript_tag("$('#checkin_item_identifier').focus().select();") %>
40
+ </script>
@@ -5,7 +5,7 @@
5
5
  <%= f.error_messages %>
6
6
  <p>
7
7
  <%= t('activerecord.attributes.item.item_identifier') -%>:
8
- <%= f.search_field :item_identifier, :class => 'resource_item_identifier', :value => nil -%>
8
+ <%= f.search_field :item_identifier, :class => 'resource_item_identifier' -%>
9
9
  <%= f.submit t('checkin.checkin'), 'data-disable-with' => t('page.saving') -%>
10
10
  </p>
11
11
  <%- end -%>
@@ -33,7 +33,7 @@
33
33
  <%= f.submit %>
34
34
  </div>
35
35
  <%- end -%>
36
- <%= javascript_tag("$('#reserve_user_number').focus()") -%>
36
+ <%= javascript_tag("$('#reserve_user_number').focus().select();") -%>
37
37
  </div>
38
38
  </div>
39
39
 
@@ -1,3 +1,3 @@
1
1
  module EnjuCirculation
2
- VERSION = "0.0.66"
2
+ VERSION = "0.0.67"
3
3
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: enju_circulation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.66
4
+ version: 0.0.67
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-25 00:00:00.000000000 Z
12
+ date: 2012-06-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails