mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
After changing the template and it's loaded, refresh.
Fixes a bug where new users did not see the results in the new view the first time (not caused by template caching though)
This commit is contained in:
parent
2806cd06c1
commit
06fb7f72b2
@ -725,7 +725,17 @@ app.classes.filemanager = AppJS.extend(
|
|||||||
nm.activeFilters.view = view;
|
nm.activeFilters.view = view;
|
||||||
|
|
||||||
// Change template to match
|
// Change template to match
|
||||||
nm.set_template(view == nm.controller.VIEW_ROW ? 'filemanager.index.rows' : 'filemanager.tile');
|
var template = view == nm.controller.VIEW_ROW ? 'filemanager.index.rows' : 'filemanager.tile';
|
||||||
|
nm.set_template(template);
|
||||||
|
|
||||||
|
// Wait for template to load, then refresh
|
||||||
|
template = nm.getWidgetById(template);
|
||||||
|
if(template && template.loading)
|
||||||
|
{
|
||||||
|
template.loading.done(function() {
|
||||||
|
nm.applyFilters({view: view});
|
||||||
|
})
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user