mangroveorg/datawinners — Issue #1: refactor entity/datasenders/ implementation approach (All datasenders page)
Author: asifmom
Created: 2012-02-04 06:09:54+00:00
State: open

javascript datasenders/index.js needs to be improved. for example the handler for web_user_creation is very complex. It trys to parse the message from the view and guess where is the email id : (json_data.errors[i].split(' ')[3])

further examples :

data_sender.short_name = $($(row).children()[2]).html();
data_sender.name = $($(row).children()[1]).html();
data_sender.location = $($(row).children()[4]).html();
data_sender.contactInformation = $($(row).children()[6]).html();
data_sender.email = $($(row).children()[7]).html();

Appropriate json could be passed directly from the views