Skip to content

Instantly share code, notes, and snippets.

@beaucollins
Created June 3, 2011 17:16
Show Gist options
  • Save beaucollins/1006713 to your computer and use it in GitHub Desktop.
Save beaucollins/1006713 to your computer and use it in GitHub Desktop.
From dc92e690ccd6a5028448e1544bb69a7a9f2fe615 Mon Sep 17 00:00:00 2001
From: Beau Collins <[email protected]>
Date: Fri, 3 Jun 2011 10:13:59 -0700
Subject: [PATCH] initializing Post with default values
---
compose/source/Compose.js | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
diff --git a/compose/source/Compose.js b/compose/source/Compose.js
index 84749c0..7c8257b 100644
--- a/compose/source/Compose.js
+++ b/compose/source/Compose.js
@@ -562,13 +562,19 @@ enyo.kind({
})
}else{
load_account();
- composer.setPost(new enyo.application.models.Post());
+ composer.setPost(new enyo.application.models.Post({
+ mt_allow_comments:null,
+ mt_allow_pings:null
+ }));
}
});
}else{
console.log("No post to find, finding account");
load_account();
- composer.setPost(new enyo.application.models.Post());
+ composer.setPost(new enyo.application.models.Post({
+ mt_allow_comments:null,
+ mt_allow_pings:null
+ }));
}
},
tagsClick:function(sender){
--
1.7.3.5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment