Hi Andrey,
We would like to report a small bug in Nop 2.0 Beta.
In all Popup windows the code for calling the refresh button in the parent window is like this:
window.opener.document.forms[0].@(ViewBag.btnId).click();
This is a bit of a problem when you have more than one form in the parent.
There are cases when the parent document has two forms, which is actually the case when you have more than one language and you have the language selector form in place. The code above always looks for the specified button in the first form, which in our case is the language selector form.
One easy fix for this is to set an id for the parent form, which contains the refresh button and later use this id to find it.
If you want to set just an id to a form you can do it like this:
@using (Html.BeginForm(null,null,FormMethod.Post,new { id = "yourFormId" })) { ... }
Then the code in the Popup window is:
window.opener.document.forms['yourFormId'].@(ViewBag.btnId).click();
Hope this helps!