DuneSt / MaterialDesignLite

This project prime goal is to bind the google's Material Design Lite project to Seaside and as second goal to build widgets on top of Material Design to help Seaside developers to create web applications with material design faster.
https://mdl.ferlicot.fr/
MIT License
41 stars 20 forks source link

improve: 'onComplete:' for ajax script of 'onClickJs:' can be customi… #313

Closed LesageYann closed 3 years ago

LesageYann commented 3 years ago

Problem :

When the user define something like : onClickJs: [ :entity | ((html jQuery id: divId2) load html: [ :ajaxHtml | ajaxHtml text: 'Selected: ' , entity printString ]) onComplete: 'console.log("an action")'] The nestedList erase the 'onComplete:' script with another script.

Solution :

The nestedList checks present of onComplete defined by user. If it exists, it keeps the user script after the nestedList script. In another case, it run only his script