Fixed edit entry post issue
This commit is contained in:
@@ -75,12 +75,12 @@ var post = {
|
||||
post.current = _.find(post.list, function(o) { return o.id == id })
|
||||
if (post.current.status == 2) {
|
||||
post.current.status = 1
|
||||
post.current.valid_at = fecha.format(new Date(), 'YYYY/MM/DD')
|
||||
var d = new Date();
|
||||
post.current.valid_at = fecha.format(new Date(), 'YYYY-MM-DD H:mm:s')
|
||||
} else if (post.current.status == 1) {
|
||||
post.current.status = 0
|
||||
}
|
||||
post.save()
|
||||
// console.log(post.current);
|
||||
},
|
||||
validateStatus: function(id) {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user