jsuites 4.17.4 → 4.17.5

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.
@@ -455,18 +455,26 @@ div[data-before]:before {
455
455
  padding: 14px;
456
456
  }
457
457
 
458
+ .jcalendar-table {
459
+ padding: 10px;
460
+ }
461
+
458
462
  .jcalendar-table > table {
459
463
  width:100%;
460
464
  background-color:#fff;
461
465
  }
462
466
 
463
467
  .jcalendar-table > table > thead {
464
- cursor:pointer;
468
+ cursor: pointer;
465
469
  }
466
470
 
467
471
  .jcalendar-table thead td {
468
- padding:10px;
469
- height:40px;
472
+ padding: 10px;
473
+ height: 40px;
474
+ }
475
+
476
+ .jcalendar-table > table > tbody > tr {
477
+ height: 34px;
470
478
  }
471
479
 
472
480
  .jcalendar-table > table > tbody td {
@@ -476,7 +484,6 @@ div[data-before]:before {
476
484
  font-size:0.9em;
477
485
  }
478
486
 
479
-
480
487
  .jcalendar-table tfoot td {
481
488
  padding:10px;
482
489
  }
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = {};
19
19
 
20
- var Version = '4.17.4';
20
+ var Version = '4.17.5';
21
21
 
22
22
  var Events = function() {
23
23
 
@@ -1358,8 +1358,8 @@ jSuites.calendar = (function(el, options) {
1358
1358
  // Reset cells container
1359
1359
  var row = document.createElement('tr');
1360
1360
  row.setAttribute('align', 'center');
1361
- // Data control
1362
- var emptyRow = true;
1361
+ row.style.height = '34px';
1362
+
1363
1363
  // Create cells
1364
1364
  for (var i = 0; i < 7; i++) {
1365
1365
  // Create cell
@@ -1402,9 +1402,6 @@ jSuites.calendar = (function(el, options) {
1402
1402
  cell.classList.add('jcalendar-disabled');
1403
1403
  }
1404
1404
  }
1405
-
1406
- // Control
1407
- emptyRow = false;
1408
1405
  }
1409
1406
  // Day cell
1410
1407
  row.appendChild(cell);
@@ -1413,9 +1410,7 @@ jSuites.calendar = (function(el, options) {
1413
1410
  }
1414
1411
 
1415
1412
  // Add cell to the calendar body
1416
- if (emptyRow == false) {
1417
- calendarBody.appendChild(row);
1418
- }
1413
+ calendarBody.appendChild(row);
1419
1414
  }
1420
1415
 
1421
1416
  // Show time controls
@@ -1824,14 +1819,12 @@ jSuites.calendar = (function(el, options) {
1824
1819
  e.stopPropagation();
1825
1820
  });
1826
1821
 
1827
- el.onmouseup = function() {
1828
- obj.open();
1829
- }
1830
-
1831
1822
  if ('ontouchend' in document.documentElement === true) {
1832
1823
  calendar.addEventListener("touchend", mouseUpControls);
1824
+ el.addEventListener("touchend", obj.open);
1833
1825
  } else {
1834
1826
  calendar.addEventListener("mouseup", mouseUpControls);
1827
+ el.addEventListener("mouseup", obj.open);
1835
1828
  }
1836
1829
 
1837
1830
  // Global controls
package/dist/jsuites.css CHANGED
@@ -455,18 +455,26 @@ div[data-before]:before {
455
455
  padding: 14px;
456
456
  }
457
457
 
458
+ .jcalendar-table {
459
+ padding: 10px;
460
+ }
461
+
458
462
  .jcalendar-table > table {
459
463
  width:100%;
460
464
  background-color:#fff;
461
465
  }
462
466
 
463
467
  .jcalendar-table > table > thead {
464
- cursor:pointer;
468
+ cursor: pointer;
465
469
  }
466
470
 
467
471
  .jcalendar-table thead td {
468
- padding:10px;
469
- height:40px;
472
+ padding: 10px;
473
+ height: 40px;
474
+ }
475
+
476
+ .jcalendar-table > table > tbody > tr {
477
+ height: 34px;
470
478
  }
471
479
 
472
480
  .jcalendar-table > table > tbody td {
@@ -476,7 +484,6 @@ div[data-before]:before {
476
484
  font-size:0.9em;
477
485
  }
478
486
 
479
-
480
487
  .jcalendar-table tfoot td {
481
488
  padding:10px;
482
489
  }
package/dist/jsuites.js CHANGED
@@ -17,7 +17,7 @@
17
17
 
18
18
  var jSuites = {};
19
19
 
20
- var Version = '4.17.4';
20
+ var Version = '4.17.5';
21
21
 
22
22
  var Events = function() {
23
23
 
@@ -1369,8 +1369,8 @@ jSuites.calendar = (function(el, options) {
1369
1369
  // Reset cells container
1370
1370
  var row = document.createElement('tr');
1371
1371
  row.setAttribute('align', 'center');
1372
- // Data control
1373
- var emptyRow = true;
1372
+ row.style.height = '34px';
1373
+
1374
1374
  // Create cells
1375
1375
  for (var i = 0; i < 7; i++) {
1376
1376
  // Create cell
@@ -1413,9 +1413,6 @@ jSuites.calendar = (function(el, options) {
1413
1413
  cell.classList.add('jcalendar-disabled');
1414
1414
  }
1415
1415
  }
1416
-
1417
- // Control
1418
- emptyRow = false;
1419
1416
  }
1420
1417
  // Day cell
1421
1418
  row.appendChild(cell);
@@ -1424,9 +1421,7 @@ jSuites.calendar = (function(el, options) {
1424
1421
  }
1425
1422
 
1426
1423
  // Add cell to the calendar body
1427
- if (emptyRow == false) {
1428
- calendarBody.appendChild(row);
1429
- }
1424
+ calendarBody.appendChild(row);
1430
1425
  }
1431
1426
 
1432
1427
  // Show time controls
@@ -1835,14 +1830,12 @@ jSuites.calendar = (function(el, options) {
1835
1830
  e.stopPropagation();
1836
1831
  });
1837
1832
 
1838
- el.onmouseup = function() {
1839
- obj.open();
1840
- }
1841
-
1842
1833
  if ('ontouchend' in document.documentElement === true) {
1843
1834
  calendar.addEventListener("touchend", mouseUpControls);
1835
+ el.addEventListener("touchend", obj.open);
1844
1836
  } else {
1845
1837
  calendar.addEventListener("mouseup", mouseUpControls);
1838
+ el.addEventListener("mouseup", obj.open);
1846
1839
  }
1847
1840
 
1848
1841
  // Global controls
package/package.json CHANGED
@@ -19,7 +19,7 @@
19
19
  "javascript plugins"
20
20
  ],
21
21
  "main": "dist/jsuites.js",
22
- "version": "4.17.4",
22
+ "version": "4.17.5",
23
23
  "bugs": "https://github.com/jsuites/jsuites/issues",
24
24
  "homepage": "https://github.com/jsuites/jsuites",
25
25
  "docs": "https://jsuites.net",