#1693: javascript method to register user_data load listeners

Type: FeatureItem Feature: LayoutAndThemes Tags: EasyToSolve
ScheduledFor:   Assigned to:   Sites:  
Priority: 0 Status: Pending  

The $.getJSON('/account/user_data') on application.js must callback to a list of methods, allowing theme specific actions on the user_data load.

Possible solution:

The theme script uses registerUserDataLoadListener(myFubction) and the $.getJSON('/account/user_data') callback send the json data to all registered functions.

registerUserDataLoadListener register the functions in an array.

-- AurelioAHeckert - 17 Sep 2010
Add comment
You need to login to be able to comment.

ActionItemForm edit

Title javascript method to register user_data load listeners
ActionItemType FeatureItem
Priority Low
Tags EasyToSolve
Feature LayoutAndThemes
Status Pending
Ticket SAC:
Topic revision: r1 - 17 Sep 2010, AurelioAHeckert

irc Talk with Devs Now!

%IF{"$'WIKINAME'!='WikiGuest'" then="

♥ I Care

%DBQUERY{"(topic='^ActionItem[0-9]+') AND whocares=~'WikiGuest' AND Status!='Done' AND Status!='Rejected'" format=" $formfield(Title)" separator="$n---$n" }%
Filter ♥ AIs

Translations: English
Search on Docs:
ActionItem Search:

Copyright © 2007-2018 by the Noosfero contributors
Colivre - Cooperativa de Tecnologias Livres