ASP.net
Awesome
Learn
Forum
Buy
Demos
Sign In
☾
☀
Switch to
Dark
Light
Mode
this site works best with javascript enabled
Ask Question
ProDinner after Upload Photo, browser error "Func is not a function"
Title:
B
I
{code}
?
I've set up a photo upload like in Prodinners, the photo upload, cropping and save work, but when I close the modal there is an error in the following: if (func) func(); with the browser saying, "Uncaught TypeError: func is not a function" What have I got wrong?
Save Changes
Cancel
Stephan
asked at 25 Oct 2017
Answers
B
I
{code}
?
in `Meal/Index.cshtml` the line utils.itemEditedAl('MealsList', 'Id', adjustMeals)(res); needs to be edited like this: utils.itemEditedAl('MealsList', adjustMeals)(res);
Save Changes
Cancel
Omu
answered at 25 Oct 2017
What does the 'Id', string parameter do? Why is it used in the Prodinner and not for other implementations?
at 08 Nov 2017
Stephan
it was the name of the key parameter used in the controller in previous versions, now it is always "id"
at 09 Nov 2017
Omu
please
Sign In
to leave an answer
By accessing this site, you agree to store cookies on your device and disclose information in accordance with our
cookie policy
and
privacy policy
.
OK