diff options
author | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-07 14:12:46 +0000 |
---|---|---|
committer | nickw <nickw@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-04-07 14:12:46 +0000 |
commit | 5fe44a6d6e4f6bc5113f4e13df517f66be890a74 (patch) | |
tree | 7f5a62a4ad60777cec6d5d40e2287a9bc4ec6bb0 /mod/blog/views/default | |
parent | 4b47e478929925086f75ac492017c3ce63712ec7 (diff) | |
download | elgg-5fe44a6d6e4f6bc5113f4e13df517f66be890a74.tar.gz elgg-5fe44a6d6e4f6bc5113f4e13df517f66be890a74.tar.bz2 |
Updating autosave handler and "Saved date" return values.
git-svn-id: http://code.elgg.org/elgg/trunk@5645 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/blog/views/default')
-rw-r--r-- | mod/blog/views/default/blog/forms/edit.php | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/mod/blog/views/default/blog/forms/edit.php b/mod/blog/views/default/blog/forms/edit.php index 7fc5d6c91..2120f04b8 100644 --- a/mod/blog/views/default/blog/forms/edit.php +++ b/mod/blog/views/default/blog/forms/edit.php @@ -101,7 +101,11 @@ $body_input = elgg_view('input/longtext', array( )); $save_status = elgg_echo('blog:save_status'); -$never = elgg_echo('blog:never'); +if ($values['publish_date']) { + $saved = date('F j, Y @ H:i', $values['publish_date']); +} else { + $saved = elgg_echo('blog:never'); +} $status_label = elgg_echo('blog:status'); $status_input = elgg_view('input/pulldown', array( @@ -174,7 +178,7 @@ $body_input <br /> <p id="blog_save_status"> - $save_status <span id="blog_save_status_time">$never</span> + $save_status <span id="blog_save_status_time">$saved</span> </p> <p> @@ -243,7 +247,7 @@ elgg_clear_sticky_form('blog'); var d = new Date(); var mins = d.getMinutes() + ''; if (mins.length == 1) mins = '0' + mins; - $("#blog_save_status_time").html(d.getHours() + ":" + mins); + $("#blog_save_status_time").html(d.toLocaleDateString() + " @ " + d.getHours() + ":" + mins); } else { $("#blog_save_status_time").html("<?php echo elgg_echo('error'); ?>"); } |