Skip to content

Commit

Permalink
Update app.js
Browse files Browse the repository at this point in the history
  • Loading branch information
rukshn committed Oct 29, 2014
1 parent 0fc5db9 commit 37db8ed
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion assets/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ App.BookController = Ember.ObjectController.extend({

App.PostController = Ember.ObjectController.extend({
voop : false,

islg : false,
actions: {
voteup: function(e) { //vote up fucntion
this.set('uposts.isVoted', false);
Expand All @@ -99,6 +99,10 @@ App.PostController = Ember.ObjectController.extend({
{
self.set('voop' , true);
}
else if(dara == "L")
{
self.set('islg', true);
}
else
{
self.set('uposts.votecount', data);
Expand All @@ -116,6 +120,10 @@ App.PostController = Ember.ObjectController.extend({
{
self.set('voop' , true);
}
else if(data == "L")
{
self.set('islg', true);
}
else
{
self.set('uposts.votecount', data);
Expand Down

0 comments on commit 37db8ed

Please sign in to comment.