mirror of
https://github.com/openclassify/openclassify.git
synced 2026-01-11 18:01:10 -06:00
fixed AdBlock error
This commit is contained in:
parent
a3d22d972b
commit
0b0bf71f5d
@ -24,9 +24,9 @@ if (getUrlParameter('view') === "advanced") {
|
||||
}
|
||||
|
||||
crudAjax({
|
||||
'advanced_column': advanced_column,
|
||||
'advanced_entry_id': advanced_entry_id,
|
||||
'advanced_value': advanced_value
|
||||
'edit_column': advanced_column,
|
||||
'edit_entry_id': advanced_entry_id,
|
||||
'edit_value': advanced_value
|
||||
}, advanced_update_url, 'POST')
|
||||
})
|
||||
}
|
||||
@ -86,5 +86,5 @@
|
||||
{% endif %}
|
||||
</div>
|
||||
<script>
|
||||
var advanced_update_url = "{{ url_route('visiosoft.module.advs::ajax_advanced_update') }}";
|
||||
var advanced_update_url = "{{ url_route('visiosoft.module.advs::ajax_multiple_update') }}";
|
||||
</script>
|
||||
|
||||
@ -50,8 +50,8 @@ class AdvsModuleServiceProvider extends AddonServiceProvider
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@assetsClear',
|
||||
],
|
||||
'admin/advs-users/choose/{advId}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@choose',
|
||||
'admin/advs/ajax/advanced/advanced-update' => [
|
||||
'as' => 'visiosoft.module.advs::ajax_advanced_update',
|
||||
'admin/ajax/multiple/multiple-update' => [
|
||||
'as' => 'visiosoft.module.advs::ajax_multiple_update',
|
||||
'uses' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@advancedUpdate',
|
||||
],
|
||||
'admin/class/actions/{id}/{type}' => 'Visiosoft\AdvsModule\Http\Controller\Admin\AdvsController@actions',
|
||||
|
||||
@ -207,10 +207,10 @@ class AdvsController extends AdminController
|
||||
|
||||
public function advancedUpdate()
|
||||
{
|
||||
if ($this->request->has('advanced_column') and $this->request->has('advanced_entry_id') and $this->request->has('advanced_value')) {
|
||||
$entry_id = $this->request->get('advanced_entry_id');
|
||||
$column = $this->request->get('advanced_column');
|
||||
$value = $this->request->get('advanced_value');
|
||||
if ($this->request->has('edit_column') and $this->request->has('edit_entry_id') and $this->request->has('edit_value')) {
|
||||
$entry_id = $this->request->get('edit_entry_id');
|
||||
$column = $this->request->get('edit_column');
|
||||
$value = $this->request->get('edit_value');
|
||||
if ($entry = $this->advRepository->find($entry_id)) {
|
||||
$entry->setAttribute($column, $value);
|
||||
$entry->save();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user