Skip to content

Commit

Permalink
fix for expiration hours for quick posts
Browse files Browse the repository at this point in the history
  • Loading branch information
lmajano committed Mar 7, 2013
1 parent f12764a commit a6b3e92
Showing 1 changed file with 12 additions and 10 deletions.
22 changes: 12 additions & 10 deletions modules/contentbox-admin/handlers/entries.cfc
Expand Up @@ -171,16 +171,18 @@ component extends="baseHandler"{
// save
function save(event,rc,prc){
// params
event.paramValue("allowComments",prc.cbSettings.cb_comments_enabled);
event.paramValue("newCategories","");
event.paramValue("isPublished",true);
event.paramValue("slug","");
event.paramValue("changelog","");
event.paramValue("customFieldsCount",0);
event.paramValue("publishedDate",now());
event.paramValue("publishedHour", timeFormat(rc.publishedDate,"HH"));
event.paramValue("publishedMinute", timeFormat(rc.publishedDate,"mm"));
event.paramValue("content","");
event.paramValue( "allowComments", prc.cbSettings.cb_comments_enabled );
event.paramValue( "newCategories", "" );
event.paramValue( "isPublished", true );
event.paramValue( "slug", "" );
event.paramValue( "changelog", "" );
event.paramValue( "customFieldsCount", 0 );
event.paramValue( "publishedDate", now() );
event.paramValue( "publishedHour", timeFormat(rc.publishedDate,"HH") );
event.paramValue( "publishedMinute", timeFormat(rc.publishedDate,"mm") );
event.paramValue( "expireHour", "" );
event.paramValue( "expireMinute", "" );
event.paramValue( "content", "" );

// Quick save changelog
if( event.isAjax() ){
Expand Down

0 comments on commit a6b3e92

Please sign in to comment.