Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Сбрасывание фильтров при массовом удалении #2536

Closed
mr-jelu opened this issue Jul 31, 2016 · 1 comment

Comments

@mr-jelu
Copy link

mr-jelu commented Jul 31, 2016

До этого я писал про проблему, со сбрасываем фильтров при удалении записей в системе. Ее исправили, но массовое удаление забыли... очень не удобно каждый раз восстанавливать фильтры

Решение проблемы в modules/yupe/widgets/CustomGridView.php (562 строка)

public function renderMultiaction()
{
           [...]
                       if (data.result) {
                                 $.fn.yiiGridView.update("'.$this->id.'");
                       } else {
                                alert(data.data);
                      }
          [...]
}

если заменить $.fn.yiiGridView.update("'.$this->id.'"); на jQuery("#'.$this->id.'").yiiGridView('update',{url: document.location.href });

проблема со сбросом фильров отпадает... надеюсь это поможет вам сделать систему более удобной для тех кто в ней работает!

@yupe yupe added this to the 1.0 milestone Aug 1, 2016
yupe added a commit that referenced this issue Aug 5, 2016
@yupe
Copy link
Owner

yupe commented Aug 5, 2016

@mr-jelu исправили, по вашему рецепту, спасибо!
Если будут еще какие-то замеания/предложения - обязательно пишите.

@yupe yupe closed this as completed Aug 5, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants