Skip to content

Commit

Permalink
Reverse close form on ESC as plugin option.
Browse files Browse the repository at this point in the history
  • Loading branch information
Wybrenb authored Jan 26, 2017
1 parent aeea68d commit 2b4756f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions Editable.php
Original file line number Diff line number Diff line change
Expand Up @@ -379,11 +379,6 @@ class Editable extends InputWidget
* @var boolean whether to auto submit/save the form on pressing ENTER key. Defaults to `true`.
*/
public $submitOnEnter = true;

/**
* @var boolean whether to exit the form on pressing ESC key. Defaults to `true`.
*/
public $closeOnEscape = true;

/**
* @var boolean whether to HTML encode the output via javascript after editable update. Defaults to `true`. Note that
Expand Down Expand Up @@ -528,7 +523,6 @@ public function registerAssets()
'showAjaxErrors' => $this->showAjaxErrors,
'ajaxSettings' => $this->ajaxSettings,
'submitOnEnter' => $this->submitOnEnter,
'closeOnEscape' => $this->closeOnEscape,
'encodeOutput' => $this->encodeOutput,
];
$this->registerPlugin('editable', 'jQuery("#' . $this->containerOptions['id'] . '")');
Expand Down

0 comments on commit 2b4756f

Please sign in to comment.