File tree Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Expand file tree Collapse file tree 1 file changed +10
-10
lines changed Original file line number Diff line number Diff line change @@ -225,22 +225,22 @@ class Dashboard extends Process implements Module
225
225
}
226
226
}
227
227
228
+ // Ignore ajax requests that are not requesting a panel render
229
+ if ($this->config->ajax && !$this->input->post->dashboard) {
230
+ return;
231
+ }
232
+
228
233
// Load settings from hook
229
234
$this->settings = $this->getSettings();
230
235
231
236
// Load panel instances from hook
232
237
$this->panels = $this->getPanels();
233
238
234
- if ($this->config->ajax) {
235
- if ($this->input->post->dashboard) {
236
- // Ajax request? (Re)render a single requested panel
237
- $key = $this->input->post->key;
238
- $panel = $this->input->post->panel;
239
- return $this->renderInstanceByKey($key, $panel);
240
- } else {
241
- // Disregard all other ajax requests
242
- return;
243
- }
239
+ // Check if we have any panels to render via ajax
240
+ if ($this->config->ajax && $this->input->post->dashboard) {
241
+ $key = $this->input->post->key;
242
+ $panel = $this->input->post->panel;
243
+ return $this->renderInstanceByKey($key, $panel);
244
244
}
245
245
246
246
// Set browser title
You can’t perform that action at this time.
0 commit comments