Skip to content

Commit

Permalink
only hide the end input if it is visible
Browse files Browse the repository at this point in the history
  • Loading branch information
nitriques committed Aug 22, 2014
1 parent 822c060 commit 0530c1e
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions assets/datetime.publish.js
Expand Up @@ -368,15 +368,17 @@
displayStatus(datespan);

// Hide end date
end.hide(); // hack to make events works
item.trigger('updatesize.collapsible');
item.trigger('setsize.collapsible');
end.attr('data-timestamp', '')
.val('')
.show()
.slideUp('fast', function() {
item.removeClass('range');
});
if (end.is(':visible')) {
end.hide(); // hack to make events works
item.trigger('updatesize.collapsible');
item.trigger('setsize.collapsible');
end.attr('data-timestamp', '')
.val('')
.show()
.slideUp('fast', function() {
item.removeClass('range');
});
}
};

// Display validity status
Expand Down

0 comments on commit 0530c1e

Please sign in to comment.