콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Hi,

It would be great to get some help from JS gurus.

In this file of OERP v.7:

/web/addons/web/static/src/js/view_list.js

... we have the following nice comment:

// FIXME: ignominious hacks, parents (aka form view) should not send two ListView#reload_content concurrently

The comment has even successfully made it into the trunk of OERP v.8.

As I only have very little experience with JS, I've spent half a day trying to spot this second invocation -- all in no avail.

Would anybody be so kind as to point me to the exact place where this second invocation of reload_content is happening in the given function (render_dataset)? And probably even somewhere outside of it...

I do see it happening in the web UI, but ridiculously cannot spot it in the source code. Namely, in my (search) wizard, when I press the 'Search' button, the page is quickly reloaded with the results of previous search on it. And only upon receiving the new results of the new search the page is reloaded again with the correct/updated results on it.

So, basically, I'd like to get rid of that initial reload with old data, which creates an impression that the search wizard has returned the very same data. And yes, I tend to suspect exactly this portion of JS-code in causing this strange behavior.

Any help would be highly appeciated,

Thanks, Anton

아바타
취소
관련 게시물 답글 화면 활동
1
9월 21
4533
2
2월 25
1991
0
1월 21
3140
0
3월 15
5020
2
5월 25
3730