Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
vjekoart committed Jul 30, 2015
2 parents cbb1d88 + 0dc255f commit 500abaf
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Form/PresentationType.php
Expand Up @@ -25,7 +25,7 @@ public function buildForm(FormBuilderInterface $builder, array $options)
->add('hall', 'text' ,array('attr' => array('class' => 'form-control')))
->add('begin', 'datetime')
->add('end', 'datetime')
->add('joind_in_id', 'text', array('attr' => array('class' => 'form-control', 'required' => false)))
->add('joind_in_id', 'text', array('attr' => array('class' => 'form-control'), 'required' => false))
//->add('event', 'entity', array('class'=>'Netgen\LiveVotingBundle\Entity\Event', 'disabled'=>true))
;
}
Expand Down
9 changes: 8 additions & 1 deletion Resources/public/js/script.js
Expand Up @@ -29,7 +29,7 @@ function brain(options_){
$('body').on('change', '.vote-form', function(e){e.preventDefault();});


$('body').on('click', '.vote-form input', function(e){
$('body').on('click', '.vote-form button', function(e){
e.preventDefault();
if(!canIVote)return;
var action = $(this).closest("form").attr('action');
Expand Down Expand Up @@ -230,6 +230,13 @@ function brain(options_){
$(this).removeClass('active');
}
});
this.element.find('button').each(function(){
if(this.value == vote_number){
$(this).addClass('active');
}else{
$(this).removeClass('active');
}
});
};


Expand Down
5 changes: 3 additions & 2 deletions Service/PresentationService/Impl/DoctrinePresentationRepo.php
Expand Up @@ -104,8 +104,9 @@ public function find($find_criteria = array())
}

$presentationEntities = $this->em->getRepository($this->presentationRepository)->findBy($find_criteria);
if(!$presentationEntities)
throw new NotFoundHttpException('Presentation(s) not found.');

/*if(!$presentationEntities)
throw new NotFoundHttpException('Presentation(s) not found.');*/

$presentationObjects = array();
foreach ($presentationEntities as $pres) {
Expand Down

0 comments on commit 500abaf

Please sign in to comment.