thecore_ui_partial_snippets 1.1.3 → 1.1.5

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: 0eea7c968cb0dd56f997629f7e94fd4e0d85e512
4
- data.tar.gz: 180a6638d7cf7a3d67d528754d2bbcb6978e44a4
3
+ metadata.gz: 59e6bc9121949e91406948ffc25c8a8d00f9ff8a
4
+ data.tar.gz: 2c39a0817e91bf8b1070a20c31ab4775c1a229b1
5
5
  SHA512:
6
- metadata.gz: 9640aab46d01fa1154b3ca560ce0148f67e2468d5124136d2b3077966cdfb7f48e024b6bfb65a26d909161bed810ac71cc2d32264c6ba1a4d4917dbbd1014291
7
- data.tar.gz: bed89c3371e683dd7179ca58709f2d7ebb53d7a1dadba17b36af7d557842a606aa3dc4e6964529ca41adda19c5a70c4df31fc9e969c9ee2e6ae7fb947981c80b
6
+ metadata.gz: 3b395b09c1b533c1cd3a96803079d561c046137c8c0c7037c6f3d9fa7743ddbc9279b26d691a54956446bab7521762e6d435381d44fd6801def137cf9797153e
7
+ data.tar.gz: 8b65ac0b3b3e61ec1598f79010be2823646733c7308b84f5bd5a36b8793b0e9d74427dac8140828ff9e0e1b29438754d0cb9ba90ae624449ed314d8f8be18492
@@ -1,6 +1,6 @@
1
1
  <script>
2
- function buildDTPicker(id, label, initialValue){
3
- var html = '<div class="input-group date" default-date="'+initialValue+'">';
2
+ function buildDTPicker(id, label, initialValue, ro){
3
+ var html = '<div class="input-group date" default-date="'+initialValue+'">';
4
4
  html += '<label class="input-group-addon">'+label+'</label>';
5
5
  html += '<input class="form-control" type="text" name="'+id+'" readonly/>';
6
6
  html += '<label class="input-group-addon"><i class="fa fa-fw fa-calendar"></i></label>';
@@ -9,7 +9,7 @@
9
9
  jqueryObj.datetimepicker({
10
10
  locale: "<%=I18n.locale%>",
11
11
  defaultDate: initialValue,
12
- ignoreReadonly: true,
12
+ ignoreReadonly: !ro,
13
13
  allowInputToggle: true,
14
14
  sideBySide: true,
15
15
  icons: {
@@ -25,5 +25,5 @@
25
25
  },
26
26
  });
27
27
  return jqueryObj;
28
- }
28
+ }
29
29
  </script>
@@ -3,9 +3,9 @@ module ThecoreUiPartialSnippets
3
3
  # This code makes the static assets present in this
4
4
  # engine available to main app, even if this gem is
5
5
  # just a dependency of another engine
6
- initializer 'thecore_dataentry_commons.load_static_assets' do |app|
7
- puts "Loading static assets for #{root}"
8
- app.middleware.use ::ActionDispatch::Static, "#{root}/app"
9
- end
6
+ # initializer 'thecore_dataentry_commons.load_static_assets' do |app|
7
+ # puts "Loading static assets for #{root}"
8
+ # app.middleware.use ::ActionDispatch::Static, "#{root}/app"
9
+ # end
10
10
  end
11
11
  end
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiPartialSnippets
2
- VERSION = '1.1.3'
2
+ VERSION = '1.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_partial_snippets
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.3
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-01-31 00:00:00.000000000 Z
11
+ date: 2018-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore