Public bug reported:

If a datatable does not have a filter on it, dynamic updating of the
content is failing

It looks like the first update is attemptd when the page loads, but then in the 
javascript console, the following appears...
TypeError: horizon.datatables.qs[$table.attr(...)] is undefined

That is causing further updates to not be attempted.

It looks like horizon.tables.js has the following code.

             // Reset quicksearch's data cache.
                horizon.datatables.qs[$table.attr('id')].cache();

I think it will work properly if we add the following check
             // Reset quicksearch's data cache if necessary
              if(horizon.datatables.qs[$table.attr('id')] != undefined) {
                horizon.datatables.qs[$table.attr('id')].cache();
              }

** Affects: horizon
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Dashboard (Horizon).
https://bugs.launchpad.net/bugs/1317124

Title:
  Datatables without filters are failing to update

Status in OpenStack Dashboard (Horizon):
  New

Bug description:
  If a datatable does not have a filter on it, dynamic updating of the
  content is failing

  It looks like the first update is attemptd when the page loads, but then in 
the javascript console, the following appears...
  TypeError: horizon.datatables.qs[$table.attr(...)] is undefined

  That is causing further updates to not be attempted.

  It looks like horizon.tables.js has the following code.

               // Reset quicksearch's data cache.
                  horizon.datatables.qs[$table.attr('id')].cache();

  I think it will work properly if we add the following check
               // Reset quicksearch's data cache if necessary
                if(horizon.datatables.qs[$table.attr('id')] != undefined) {
                  horizon.datatables.qs[$table.attr('id')].cache();
                }

To manage notifications about this bug go to:
https://bugs.launchpad.net/horizon/+bug/1317124/+subscriptions

-- 
Mailing list: https://launchpad.net/~yahoo-eng-team
Post to     : yahoo-eng-team@lists.launchpad.net
Unsubscribe : https://launchpad.net/~yahoo-eng-team
More help   : https://help.launchpad.net/ListHelp

Reply via email to