Revision a2b39c54 snf-cyclades-app/synnefo/ui/static/snf/js/models.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/models.js | ||
---|---|---|
399 | 399 |
}, |
400 | 400 |
|
401 | 401 |
get_fetcher: function(interval, increase, fast, increase_after_calls, |
402 |
max, initial_call, params) { |
|
402 |
max, initial_call, params, fetcher_id) {
|
|
403 | 403 |
var fetch_params = params || {}; |
404 | 404 |
var handler_options = {}; |
405 | 405 |
|
... | ... | |
409 | 409 |
handler_options.fast = fast; |
410 | 410 |
handler_options.increase_after_calls = increase_after_calls; |
411 | 411 |
handler_options.max= max; |
412 |
handler_options.id = "collection id";
|
|
412 |
handler_options.id = fetcher_id || "collection";
|
|
413 | 413 |
|
414 | 414 |
var last_ajax = undefined; |
415 | 415 |
var callback = _.bind(function() { |
... | ... | |
2481 | 2481 |
model: models.Quota, |
2482 | 2482 |
api_type: 'accounts', |
2483 | 2483 |
path: 'quotas', |
2484 |
supportIncUpdates: false, |
|
2484 | 2485 |
parse: function(resp) { |
2485 | 2486 |
filtered = _.map(resp.system, function(value, key) { |
2486 | 2487 |
var available = (value.limit - value.usage) || 0; |
Also available in: Unified diff