mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-23 10:40:13 +01:00
first pass to distribute settings over tabs
This commit is contained in:
parent
3bf8c461f1
commit
977b57dbb2
5 changed files with 167 additions and 66 deletions
|
|
@ -641,6 +641,12 @@ var UsersPage = {
|
|||
}
|
||||
}
|
||||
|
||||
var PreferencesPage = {
|
||||
setup_behavior: function() {
|
||||
$( "#tabs" ).tabs();
|
||||
}
|
||||
}
|
||||
|
||||
var ProjectListPage = {
|
||||
update_state_count: function(state, count) {
|
||||
$('#'+state+'-projects-count').html(count);
|
||||
|
|
@ -1238,7 +1244,7 @@ $(document).ready(function() {
|
|||
TodoItemsContainer.setup_container_toggles();
|
||||
|
||||
/* enable page specific behavior */
|
||||
$([ 'IntegrationsPage', 'NotesPage', 'ProjectListPage', 'ContextListPage',
|
||||
$([ 'PreferencesPage', 'IntegrationsPage', 'NotesPage', 'ProjectListPage', 'ContextListPage',
|
||||
'FeedsPage', 'RecurringTodosPage', 'TodoItems', 'TracksPages',
|
||||
'TracksForm', 'SearchPage', 'UsersPage' ]).each(function() {
|
||||
eval(this+'.setup_behavior();');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue