thecore_ui_partial_snippets 1.1.5 → 1.1.7

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: 59e6bc9121949e91406948ffc25c8a8d00f9ff8a
4
- data.tar.gz: 2c39a0817e91bf8b1070a20c31ab4775c1a229b1
3
+ metadata.gz: 5a7be3508a62e35d0ba5404bb8c8bb2e07ad5310
4
+ data.tar.gz: 0a14f6fe5f54c6fdc81684989a108db7577b80d3
5
5
  SHA512:
6
- metadata.gz: 3b395b09c1b533c1cd3a96803079d561c046137c8c0c7037c6f3d9fa7743ddbc9279b26d691a54956446bab7521762e6d435381d44fd6801def137cf9797153e
7
- data.tar.gz: 8b65ac0b3b3e61ec1598f79010be2823646733c7308b84f5bd5a36b8793b0e9d74427dac8140828ff9e0e1b29438754d0cb9ba90ae624449ed314d8f8be18492
6
+ metadata.gz: '01691e1cbabc364cf781023d2af316d574622a97fd65bf55afad84e8f21897918c7bc8a3a8f4758b7fcc2f30df8406e640f2ead28d57ee699b69dc5c0a663f5b'
7
+ data.tar.gz: a4d9a7f5dc13a1206a828ff897b4dd9fff1e3d67c29407d2999f64061f694f476cb564430efb5916b79fb8d953ebc29419e1b87c27d9a7cb2471e6e942f6e2e8
@@ -1,12 +1,12 @@
1
1
  <script>
2
- function buildDTPicker(id, label, initialValue, ro){
2
+ function buildDTPicker(id, label, initialValue, ro, date_only){
3
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>';
7
7
  html += '</div>';
8
8
  var jqueryObj = $(html);
9
- jqueryObj.datetimepicker({
9
+ var dtParams = {
10
10
  locale: "<%=I18n.locale%>",
11
11
  defaultDate: initialValue,
12
12
  ignoreReadonly: !ro,
@@ -22,8 +22,11 @@
22
22
  today: 'fa fa-calendar-check-o',
23
23
  clear: 'fa fa-trash',
24
24
  close: 'fa fa-times'
25
- },
26
- });
25
+ }
26
+ }
27
+ if(date_only)
28
+ dtParams.format = "L";
29
+ jqueryObj.datetimepicker(dtParams);
27
30
  return jqueryObj;
28
31
  }
29
32
  </script>
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiPartialSnippets
2
- VERSION = '1.1.5'.freeze
2
+ VERSION = '1.1.7'.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.5
4
+ version: 1.1.7
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-02-15 00:00:00.000000000 Z
11
+ date: 2018-02-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thecore
@@ -24,7 +24,7 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.1'
27
- description: Rails partials useful in Thecore Atomic Components.
27
+ description: Rails partials useful in Thecore Atomic Components and main.
28
28
  email:
29
29
  - gabriele.tassoni@gmail.com
30
30
  executables: []