Skip to content

Commit

Permalink
Properly saves datetime when leaving the datetime containing LI eleme…
Browse files Browse the repository at this point in the history
…nt. [#17 state: resolved]
  • Loading branch information
lethain committed Jun 6, 2008
1 parent 99c1141 commit b8db327
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/lifeflow/editor/edit_six.html
Expand Up @@ -13,6 +13,10 @@
$(document).ready(function() {
$("#send_ping").change(function(){ update(); });
$("#allow_comments").change(function(){ update(); });
$("#datetime").hover(
function() {},
function() { update(); }
);
});
</script>

Expand All @@ -29,7 +33,7 @@
<div class="editing">
<form>
<ul>
<li>
<li id="datetime">
<p> Please select the date and time to publish this entry. The entry will not be visible on the blog until this after this date and time is passed. </p>
<p> Date: <input id="date" name="date" value="{% if object.pub_date %}{{ object.pub_date|date:"Y-m-d" }}{% else %}{% now "Y-m-d" %}{% endif %}"> </p>
<p> Time: <input id="time" name="time" value="{% if object.pub_date %}{{ object.pub_date|date:"H:i:s" }}{% else %}{% now "H:i:s" %}{% endif %}"> </p>
Expand Down

0 comments on commit b8db327

Please sign in to comment.