...used in views_plugin_exposed_form.inc

    if (!empty($form_state['js settings'])) {
      $this->view->js_settings = $form_state['js settings'];
    }

related posts:
#1170572: Missing var $current_display declaration?
#1184648: Missing var $definition declaration?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

$form_state['js settings'] is no longer needed in D7, but probably hasn't been fully removed in the port.

neoglez’s picture

Title: Missing var $js_settings declaration in view class » Remove/replace $js_settings in views_plugin_exposed_form.inc (D7 port)

Maybe this should not reference a file in particular? or is OK so to work (& commit) in a more modular way?

merlinofchaos’s picture

Title: Remove/replace $js_settings in views_plugin_exposed_form.inc (D7 port) » Remove $js_settings in views_plugin_exposed_form.inc (D7 port)

js_settings was used in D6 but the D7 ajax framework actually doesn't need it because drupal_add_js works across AJAX requests. It was a hack. It should be completely removed from D7.

jonhattan’s picture

Other occurences of "js settings"

$ grep -r -n "js settings" *
includes/admin.inc:2423:    if (!empty($form_state['js settings']) && is_array($form_state['js settings'])) {
includes/admin.inc:2424:      $form_state['js settings'] = array_merge($form_state['js settings'], $form['#js']);
includes/admin.inc:2427:      $form_state['js settings'] = $form['#js'];
includes/ajax.inc:249:    if (!empty($form_state['js settings'])) {
includes/ajax.inc:250:      $commands[] = ajax_command_settings($form_state['js settings']);
plugins/views_plugin_exposed_form.inc:137:    if (!empty($form_state['js settings'])) {
plugins/views_plugin_exposed_form.inc:138:      $this->view->js_settings = $form_state['js settings'];
David Hernández’s picture

Status: Active » Needs review
FileSize
2.02 KB

Hi there,

Here is a patch removing all the js settings on all the files.

Regards,
David.

neoglez’s picture

Seems fine to me.

dawehner’s picture

Status: Needs review » Fixed

Thanks for writing the patch.

Commited to 7.x-3.x

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.