Permalink
Browse files

move delete button last always

  • Loading branch information...
1 parent e8ffe5d commit aa6a8a9ab8ab9ba8c13cd7990b560fc18115deee @romaninsh romaninsh committed May 11, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/Grid/Basic.php
View
@@ -408,6 +408,7 @@ function setButtonClass($class){
}
function init_delete($field){
$this->columns[$field]['button_class']='red';
+ $this->addOrder()->move($field,'last')->onHook($this->api,'post-init');
return $this->init_confirm($field);
}
function init_confirm($field){

0 comments on commit aa6a8a9

Please sign in to comment.