mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Merge branch '3.6' into 3
This commit is contained in:
commit
2c6f588785
@ -47,13 +47,15 @@
|
||||
// XMLHttpRequest
|
||||
CurrentXhr: null,
|
||||
|
||||
onmatch: function() {
|
||||
onadd: function() {
|
||||
this.append(
|
||||
'<span class="treedropdownfield-title"></span>' +
|
||||
'<div class="treedropdownfield-toggle-panel-link"><a href="#" class="ui-icon ui-icon-triangle-1-s"></a></div>' +
|
||||
'<div class="treedropdownfield-panel"><div class="tree-holder"></div></div>'
|
||||
);
|
||||
},
|
||||
|
||||
onmatch: function() {
|
||||
var linkTitle = strings.openLink;
|
||||
if(linkTitle) this.find("treedropdownfield-toggle-panel-link a").attr('title', linkTitle);
|
||||
if(this.data('title')) this.setTitle(this.data('title'));
|
||||
@ -334,7 +336,7 @@
|
||||
});
|
||||
|
||||
$('.TreeDropdownField.searchable').entwine({
|
||||
onmatch: function() {
|
||||
onadd: function() {
|
||||
this._super();
|
||||
var title = ss.i18n._t('TreeDropdownField.ENTERTOSEARCH');
|
||||
this.find('.treedropdownfield-panel').prepend(
|
||||
|
@ -188,6 +188,13 @@ class ManyManyList extends RelationList {
|
||||
* Add an item to this many_many relationship
|
||||
* Does so by adding an entry to the joinTable.
|
||||
*
|
||||
* Can also be used to update an already existing joinTable entry
|
||||
*
|
||||
* Example:
|
||||
*
|
||||
* $manyManyList->add($recordID, array("ExtraField"=>"value"));
|
||||
*
|
||||
*
|
||||
* @throws InvalidArgumentException
|
||||
* @throws Exception
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user