Revision a2b39c54 snf-cyclades-app/synnefo/ui/static/snf/js/sync.js
b/snf-cyclades-app/synnefo/ui/static/snf/js/sync.js | ||
---|---|---|
124 | 124 |
|
125 | 125 |
options.url = getUrl(urlobject, options, method) || urlError(); |
126 | 126 |
if (urlobject && urlobject.supportIncUpdates) { |
127 |
options.url = options.refresh ? options.url : setChangesSince(options.url, type); |
|
127 |
if (!options.refresh) { |
|
128 |
options.url = setChangesSince(options.url, type); |
|
129 |
options._detect_change_by_response_code = true; |
|
130 |
} |
|
128 | 131 |
} |
129 | 132 |
if (!options.refresh && options.cache === undefined) { |
130 | 133 |
options.cache = true; |
... | ... | |
261 | 264 |
return; |
262 | 265 |
} |
263 | 266 |
|
264 |
if (["beforeSend", "complete"].indexOf(cb_type) == -1 && this.is_recurrent) { |
|
267 |
if (["beforeSend", "complete"].indexOf(cb_type) == -1 && |
|
268 |
this._detect_change_by_response_code) { |
|
265 | 269 |
// trigger event to notify that a recurrent event |
266 | 270 |
// has returned status other than notmodified |
267 | 271 |
snf.api.trigger("change:recurrent"); |
Also available in: Unified diff