mirror of
https://github.com/silverstripe/silverstripe-reports
synced 2024-10-22 11:05:53 +02:00
mlanthaler: Bugfix: Fixed bug which caused problems in IE but was tolerated in Firefox.
(merged from branches/gsoc) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/cms/trunk@41917 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
parent
eb73802bcd
commit
67ac1edf87
@ -2,12 +2,12 @@ MemberTableFieldPopupForm = Class.extend("ComplexTableFieldPopupForm");
|
|||||||
MemberTableFieldPopupForm.prototype = {
|
MemberTableFieldPopupForm.prototype = {
|
||||||
initialize: function() {
|
initialize: function() {
|
||||||
this.ComplexTableFieldPopupForm.initialize();
|
this.ComplexTableFieldPopupForm.initialize();
|
||||||
|
|
||||||
Behaviour.register({
|
Behaviour.register({
|
||||||
"form#MemberTableField_Popup_DetailForm input.action": {
|
"form#MemberTableField_Popup_DetailForm input.action": {
|
||||||
onclick: this.submitForm.bind(this)
|
onclick: this.submitForm.bind(this)
|
||||||
},
|
},
|
||||||
|
|
||||||
'form#MemberTableField_Popup_DetailForm input' : {
|
'form#MemberTableField_Popup_DetailForm input' : {
|
||||||
initialise : function() {
|
initialise : function() {
|
||||||
if(this.name == 'FirstName' || this.name == 'Surname' || this.name == 'Email') {
|
if(this.name == 'FirstName' || this.name == 'Surname' || this.name == 'Email') {
|
||||||
@ -25,18 +25,17 @@ MemberTableFieldPopupForm.prototype = {
|
|||||||
afterAutocomplete : function(field, selectedItem) {
|
afterAutocomplete : function(field, selectedItem) {
|
||||||
var data = selectedItem.getElementsByTagName('span')[1].innerHTML;
|
var data = selectedItem.getElementsByTagName('span')[1].innerHTML;
|
||||||
var items = data.split(",");
|
var items = data.split(",");
|
||||||
|
|
||||||
this.elements.FirstName.value = items[0];
|
this.elements.FirstName.value = items[0];
|
||||||
this.elements.Surname.value = items[1];
|
this.elements.Surname.value = items[1];
|
||||||
this.elements.Email.value = items[2];
|
this.elements.Email.value = items[2];
|
||||||
this.elements.Password.value = items[3];
|
this.elements.Password.value = items[3];
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//'form#MemberTableField_Popup_DetailForm input' : AjaxMemberLookup
|
//'form#MemberTableField_Popup_DetailForm input' : AjaxMemberLookup
|
||||||
});
|
});
|
||||||
},
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MemberTableFieldPopupForm.applyTo('form#MemberTableField_Popup_DetailForm');
|
MemberTableFieldPopupForm.applyTo('form#MemberTableField_Popup_DetailForm');
|
Loading…
Reference in New Issue
Block a user