mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-08-19 04:46:42 +02:00
Nextmatch onselect attribute understands app.appname.function directly, and passes nextmatch reference & list of ids
This commit is contained in:
@@ -64,7 +64,7 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(
|
||||
}
|
||||
// Add our selection callback to selection manager
|
||||
var self = this;
|
||||
this._objectManager.setSelectedCallback = function() {self._selectCallback(this);};
|
||||
this._objectManager.setSelectedCallback = function() {self._selectCallback.apply(self,[this,arguments]);};
|
||||
|
||||
// Call the parent et2_dataview_controller constructor
|
||||
this._super(_parentController, _grid, this, this._rowCallback,
|
||||
@@ -264,9 +264,13 @@ var et2_nextmatch_controller = et2_dataview_controller.extend(
|
||||
/**
|
||||
* Execute the select callback when the row selection changes
|
||||
*/
|
||||
_selectCallback: function(action)
|
||||
_selectCallback: function(action,senders)
|
||||
{
|
||||
this._widget.onselect.call(this._widget, action);
|
||||
if(typeof senders == "undefined")
|
||||
{
|
||||
senders = [];
|
||||
}
|
||||
this._widget.onselect.call(this._widget, action,senders);
|
||||
},
|
||||
|
||||
/** -- Implementation of et2_IDataProvider -- **/
|
||||
|
Reference in New Issue
Block a user