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