#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 0
Tags EasyToSolve
Feature LayoutAndThemes
Status Pending
Ticket SAC:
Topic revision: r1 - 17 Sep 2010 - 17:34:59 - AurelioAHeckert

irc Talk with Devs Now!

Translations: English
Search on Docs:
ActionItem Search:

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