Skip to content

Commit

Permalink
Remove depracted clickCTA function in Modal controller
Browse files Browse the repository at this point in the history
  • Loading branch information
MathieuNls committed Feb 3, 2016
1 parent a0fb6f2 commit bf9dcb5
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions application/controllers/Modal.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,6 @@
class Modal extends MY_Controller
{

private function ctaClick(){
if($this->input->post('cta') != ""){
$cta = 'CTA_' . strtoupper ( $this->input->post('cta') );

if(property_exists($this->event, $cta)){
$this->event->add($this->event->{$cta});
}
}
}

public function accuracyWarning(){
if($this->input->post('ajax'))
{
Expand All @@ -29,7 +19,6 @@ public function login()
{
if($this->input->post('ajax'))
{
$this->ctaClick();
$this->event->add(LOGIN_POPUP);
$this->load->view('modal/login');
}
Expand All @@ -43,9 +32,8 @@ public function signUp()
{
if($this->input->post('ajax'))
{
$this->ctaClick();
$this->event->add(SIGN_UP_POPUP);
$this->load->view('modal/sign-up');
$this->load->view('modal/sign-up');
}
else
{
Expand Down

0 comments on commit bf9dcb5

Please sign in to comment.