nokiadatagathering/ndg-ng — Issue #2: Edited survey names are not displaying on survey list
Author: IanLawrence
Created: 2011-11-10 19:01:44+00:00
State: open

Edit survey name and hit back button to go to survey list - this should save and update name in survey list. This works if the process is repeated (i.e refreshed) so commenting out
// refresh( msg );
does not seem to work. leaving in is a null expection and the page jumps back to the editor from survey list

function onSaveClicked(){
updateSurveyIndexes();
$.ajax(
{
type: "POST",
url: "/SurveyManager/saveSurvey",
data: {surveyData : surveyModel.getSurveyString()},
success: function( msg ){
// refresh( msg );
// alert( "Survey saved successfully "); //TODo localize
},
error: function( request, error ) {
alert("Problem with saving survey. Original error: " + error);
}
});
}