summaryrefslogtreecommitdiff
path: root/addons/web/static/src/js/views/basic
diff options
context:
space:
mode:
authorKhoi Nguyen <khoi@nguyen.me.uk>2017-07-06 10:43:00 +0200
committerKhoi Nguyen <khoi@nguyen.me.uk>2017-07-06 11:50:35 +0200
commit5854bb7d12ebae359dc1bef20c966c9f0e8d983e (patch)
treedc5f3fcbda3d9635bb8f1a1d422855f773437bf0 /addons/web/static/src/js/views/basic
parent70e1efd41e6433ab2e010fdd923ff0d3683504c0 (diff)
[IMP] web: Add disableDrop option to dragAndDrop
In some situations, it would be desirable to be able to attempt a drag and drop, without actually triggering the dropping action. As an example, we would like to see whether dragging a new field in studio ensures that a class 'o_web_studio_nearest_hook' be assigned. This can only be tested *before* the new field is dropped. This commit adds an optional argument 'disableDrop' to the dragAndDrop method, and sets it by default to false. The dropping action will then only be triggered if the aforementioned parameter is set to false.
Diffstat (limited to 'addons/web/static/src/js/views/basic')
0 files changed, 0 insertions, 0 deletions