Bug #17776 » 0006693_w.patch
t3lib/jsfunc.inline.js (Arbeitskopie) | ||
---|---|---|
lockedAjaxMethod: {},
|
||
data: {},
|
||
addToDataArray: function(object) { for (var i in object) { this.data[i] = $H(this.data[i]).merge(object[i]); } },
|
||
addToDataArray: function(object) {
|
||
$H(object).each(function(pair) {
|
||
inline.data[pair.key] = $H(inline.data[pair.key]).merge(pair.value).toObject();
|
||
});
|
||
},
|
||
setPrependFormFieldNames: function(value) { this.prependFormFieldNames = value; },
|
||
setNoTitleString: function(value) { this.noTitleString = value; },
|
||
... | ... | |
},
|
||
revertUnique: function(objectPrefix, elName, recordUid) {
|
||
if (this.data.unique && this.data.unique[objectPrefix]) {
|
||
var unique = this.data.unique[objectPrefix];
|
||
var fieldObj = elName ? document.getElementsByName(elName+'['+unique.field+']') : null;
|
||
... | ... | |
// alert(objectPrefix+'/'+recordUid);
|
||
delete(this.data.unique[objectPrefix].used[recordUid])
|
||
}
|
||
}
|
||
},
|
||
enableDisableRecord: function(objectId) {
|
||
... | ... | |
var beforeDeleteIsBelowMax = this.isBelowMax(objectPrefix);
|
||
// revert the unique settings if available
|
||
if (this.data.unique && this.data.unique[objectPrefix]) this.revertUnique(objectPrefix, elName, recordUid);
|
||
this.revertUnique(objectPrefix, elName, recordUid);
|
||
// if the record is new and was never saved before, just remove it from DOM
|
||
if (this.isNewRecord(objectId)) {
|
- « Previous
- 1
- 2
- Next »