lcollong
FabriKant d'applications web
Hi,
According to the wiki : http://fabrikar.com/forums/index.php?wiki/list-javascript/
I've created a "list_49.js" with the following :
The list #49 is ajaxified (both navigation and link).
On the console, I see the "before" on list load but when I open a record (shown in a popup) and close it (either with the "cross" on the upper right corner or the submit/close button), the "after" is never triggered.
Actually, I need the 'fabrik.list.row.view.close' event but I did test on both edit and view without success. I do not have js errors. I've tried on two different templates including the standard protostar and on the very last J/F version (3.9) and another one a bit older.
Did I miss something ?
According to the wiki : http://fabrikar.com/forums/index.php?wiki/list-javascript/
I've created a "list_49.js" with the following :
JavaScript:
/**
* Ensure that Fabrik's loaded
*/
console.log('before');
requirejs(['fab/fabrik'], function () {
// An edit window has been closed
Fabrik.addEvent('fabrik.list.row.edit.close', function (listRef, rowid, k) {
console.log('after');
// Update the lists data
Fabrik.getBlock(listRef).updateRows();
});
});
The list #49 is ajaxified (both navigation and link).
On the console, I see the "before" on list load but when I open a record (shown in a popup) and close it (either with the "cross" on the upper right corner or the submit/close button), the "after" is never triggered.
Actually, I need the 'fabrik.list.row.view.close' event but I did test on both edit and view without success. I do not have js errors. I've tried on two different templates including the standard protostar and on the very last J/F version (3.9) and another one a bit older.
Did I miss something ?