sinatra-hexacta 0.7.0 → 0.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/sinatra/public/js/app.js +32 -13
- data/lib/sinatra/views/inputs/range.slim +2 -4
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6441a9172eb670443378e20b77bfa187d70cafd6a26346aebd914b3f3b2d96f8
|
|
4
|
+
data.tar.gz: d0be24b7dc18fb3260e313d8d1fd9f225853df0a5ee6f4c6a974b204becf9fff
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dc7672ceacebb68769d2ef9724f064621e97c5603e703837010e2435fb99bb27b574874f4405bed2b03bee07d159acb3caf8f2241f780c254cb59e84b0cfae19
|
|
7
|
+
data.tar.gz: 3e5f6a89d64fe779832a0903f4fdfa76a83031bd2f72d4f19fe8d77ee02d25b78ce13a116c8b4232f4067970c0936bc1c2c010e0ef39183b1097f98471a6ec9f
|
|
@@ -5,19 +5,6 @@ if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(naviga
|
|
|
5
5
|
$('html').addClass('ismobile');
|
|
6
6
|
}
|
|
7
7
|
|
|
8
|
-
// configuration of the observer:
|
|
9
|
-
var config = { attributes: false, childList: true, characterData: false, subtree: true };
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
// Chosen touch support.
|
|
13
|
-
if ($('.chosen-container').length > 0) {
|
|
14
|
-
$('.chosen-container').on('touchstart', function(e){
|
|
15
|
-
e.stopPropagation(); e.preventDefault();
|
|
16
|
-
// Trigger the mousedown event.
|
|
17
|
-
$(this).trigger('mousedown');
|
|
18
|
-
});
|
|
19
|
-
}
|
|
20
|
-
|
|
21
8
|
$(document).ready(function(){
|
|
22
9
|
|
|
23
10
|
// Fix modal inside other components
|
|
@@ -270,6 +257,16 @@ $(document).ready(function(){
|
|
|
270
257
|
});
|
|
271
258
|
}
|
|
272
259
|
|
|
260
|
+
// Chosen touch support.
|
|
261
|
+
if ($('.chosen-container').length > 0) {
|
|
262
|
+
$('.chosen-container').on('touchstart', function(e){
|
|
263
|
+
e.stopPropagation(); e.preventDefault();
|
|
264
|
+
// Trigger the mousedown event.
|
|
265
|
+
$(this).trigger('mousedown');
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
|
|
273
270
|
/*
|
|
274
271
|
* Date Time Picker
|
|
275
272
|
*/
|
|
@@ -313,6 +310,28 @@ $(document).ready(function(){
|
|
|
313
310
|
});
|
|
314
311
|
}
|
|
315
312
|
|
|
313
|
+
if ($('.date-range')[0]) {
|
|
314
|
+
// to_data_source method is compliant with the calendar library used in holidays
|
|
315
|
+
$('.date-range').daterangepicker({
|
|
316
|
+
"parentEl" : $(this).id,
|
|
317
|
+
"autoApply": true,
|
|
318
|
+
"locale": {
|
|
319
|
+
"format": "D MMMM, YYYY",
|
|
320
|
+
"separator": " - ",
|
|
321
|
+
"applyLabel": "Aplicar",
|
|
322
|
+
"cancelLabel": "Cancelar",
|
|
323
|
+
"fromLabel": "Desde",
|
|
324
|
+
"toLabel": "Hasta",
|
|
325
|
+
"customRangeLabel": "Custom",
|
|
326
|
+
"weekLabel": "S",
|
|
327
|
+
"daysOfWeek": ["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],
|
|
328
|
+
"monthNames": ["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],
|
|
329
|
+
"firstDay": 1
|
|
330
|
+
},
|
|
331
|
+
opens: 'center'
|
|
332
|
+
});
|
|
333
|
+
}
|
|
334
|
+
|
|
316
335
|
/*
|
|
317
336
|
* Waves Animation
|
|
318
337
|
*/
|
|
@@ -8,16 +8,14 @@
|
|
|
8
8
|
- id = "#{name}_#{rand(1000)}"
|
|
9
9
|
- unless defined? clazz
|
|
10
10
|
- clazz = nil
|
|
11
|
-
- unless defined? all_days
|
|
12
|
-
- all_days = false
|
|
13
11
|
|
|
14
12
|
.form-group.fg-float
|
|
15
13
|
label #{title}
|
|
16
14
|
.fg-line
|
|
17
15
|
- if required
|
|
18
|
-
input.form-control.date-range.fg-input id="#{id}" type="text" name="#{name}" required="" value="#{date_range}" class="#{clazz}"
|
|
16
|
+
input.form-control.date-range.fg-input id="#{id}" type="text" name="#{name}" required="" value="#{date_range}" class="#{clazz}"
|
|
19
17
|
- else
|
|
20
|
-
input.form-control.date-range.fg-input id="#{id}" type="text" name="#{name}" value="#{date_range}" class="#{clazz}"
|
|
18
|
+
input.form-control.date-range.fg-input id="#{id}" type="text" name="#{name}" value="#{date_range}" class="#{clazz}"
|
|
21
19
|
input.hidden name="from" value="#{from}"
|
|
22
20
|
input.hidden name="to" value="#{to}"
|
|
23
21
|
|