Committer: dpetrov
LJSUP-9815: New entry is created as scheduled post even if in setting "Schedule for:" selected "Now"U trunk/htdocs/js/entry.js
Modified: trunk/htdocs/js/entry.js =================================================================== --- trunk/htdocs/js/entry.js 2011-09-28 07:29:43 UTC (rev 20155) +++ trunk/htdocs/js/entry.js 2011-09-28 07:55:46 UTC (rev 20156) @@ -14,6 +14,7 @@ function editdate(){ var currentDate = jQuery('#currentdate'), modifyDate = jQuery('#modifydate'), + customTimeFlag = jQuery('#journal_time_edited'), cal = modifyDate.find('.wrap-calendar'), calVal = modifyDate.find('.wrap a'); @@ -24,6 +25,7 @@ currentDate.hide(); modifyDate.css('display', ''); + customTimeFlag.val('1'); f = document.updateForm; var month = f.date_ymd_mm.selectedIndex || f.date_ymd_mm.value; @@ -44,6 +46,7 @@ function revertdate() { var currentDate = jQuery('#currentdate'), modifyDate = jQuery('#modifydate'), + customTimeFlag = jQuery('#journal_time_edited'), cal = modifyDate.find('.wrap-calendar'); if (cal.is(':lj-calendar')) { @@ -52,6 +55,7 @@ currentDate.css('display', ''); modifyDate.hide(); + customTimeFlag.val('0'); if (currentDate.data('dotime')) { settime.interval = setInterval(function() { settime(); }, 1000);