Skip to content

Commit

Permalink
styles changes, getdate now return correct minutes and hours
Browse files Browse the repository at this point in the history
  • Loading branch information
pinguxx committed Apr 4, 2015
1 parent 411656d commit fe89efb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Calendar.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ var Calendar = function (properties) {
maxlength: 4,
type: 'text',
required: 'required',
style: !calendar.editingYear() ? 'display:none;' : 'width: 40px;',
style: !calendar.editingYear() ? 'display:none;' : 'width: 40px;padding: 1px;',
config: function (element) {
if (calendar.editingYear()) {
element.focus();
Expand Down Expand Up @@ -127,7 +127,7 @@ var Calendar = function (properties) {
e.preventDefault();
cal.value(date);
if (properties.onclick) {
properties.onclick(date);
properties.onclick(cal.getDate());
}
}
}, date.getDate()) :
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sm-calendar",
"version": "0.0.3",
"version": "0.0.4",
"homepage": "https://github.com/pinguxx/sm-calendar",
"authors": [
"Ivan Torres <[email protected]>"
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "sm-calendar",
"version": "0.0.3",
"version": "0.0.4",
"description": "mithril semantic-ui calendar widget",
"main": "Calendar.js",
"scripts": {
Expand Down

0 comments on commit fe89efb

Please sign in to comment.