Skip to content

Commit 8edf463

Browse files
committed
- add a close button
- upgrade dev dependencies - bump version
1 parent 85833a1 commit 8edf463

9 files changed

+414
-221
lines changed

CHANGELOG.md

+6
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,11 @@
11
# Change Logs
22

3+
## v0.0.10
4+
5+
- add a close button
6+
- upgrade dev dependencies
7+
8+
39
## v0.0.9
410

511
- support zmgr for proper z-indexing

dist/index.css

+12
Original file line numberDiff line numberDiff line change
@@ -131,3 +131,15 @@
131131
outline: 0;
132132
text-align: center;
133133
}
134+
.lddtp-c {
135+
text-align: center;
136+
padding: 0.5em;
137+
font-weight: bold;
138+
font-size: 0.75em;
139+
background: #f7f8f9;
140+
border-radius: 0.25em;
141+
}
142+
.lddtp-c:before {
143+
content: "OK";
144+
display: block;
145+
}

dist/index.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
(function(){
22
var html, lddatetimepicker;
3-
html = '<div class="lddtp"><div>\n <div class="lddtp-h">\n <div class="lddtp-a" data-action="-"></div>\n <div class="lddtp-f"><select class="lddtp-month-sel"></select></div>\n <div class="lddtp-f"><input class="lddtp-year-sel" type="number"/></div>\n <div class="lddtp-a" data-action="+"></div>\n </div>\n <div class="lddtp-ds">\n </div>\n <div class="lddtp-t">\n <div class="lddtp-f"><select class="lddtp-hour-sel"></select></div>\n <div><b>:</b></div>\n <div class="lddtp-f"><select class="lddtp-minute-sel"></select></div>\n </div>\n</div></div>';
3+
html = '<div class="lddtp"><div>\n <div class="lddtp-h">\n <div class="lddtp-a" data-action="-"></div>\n <div class="lddtp-f"><select class="lddtp-month-sel"></select></div>\n <div class="lddtp-f"><input class="lddtp-year-sel" type="number"/></div>\n <div class="lddtp-a" data-action="+"></div>\n </div>\n <div class="lddtp-ds">\n </div>\n <div class="lddtp-t">\n <div class="lddtp-f"><select class="lddtp-hour-sel"></select></div>\n <div><b>:</b></div>\n <div class="lddtp-f"><select class="lddtp-minute-sel"></select></div>\n </div>\n <div class="lddtp-c"></div>\n</div></div>';
44
lddatetimepicker = function(opt){
55
var ref$, _c, div, r, x$, _handler, e, this$ = this;
66
opt == null && (opt = {});
@@ -138,6 +138,8 @@
138138
} else if (n.getAttribute('data-action') === '+') {
139139
this$.cur = this$.cur.add(1, "month");
140140
return this$.update(this$.cur);
141+
} else if (n.classList.contains('lddtp-c')) {
142+
return this$.toggle(false);
141143
}
142144
});
143145
this.n.sel.minute.addEventListener('change', function(evt){

dist/index.min.css

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)