Fix a JS race condition with template attachments i18n.
This commit is contained in:
parent
fae11ffcdb
commit
871991ae87
2 changed files with 16 additions and 15 deletions
|
|
@ -12,6 +12,7 @@
|
|||
- fixed #11185: Code editor broken in IE8 for SQLReport
|
||||
- fixed #11177: Code editor steals focus on load
|
||||
- fixed #10888: Final touches on map point bugs
|
||||
- fixed #11274: Add attachment broken in template
|
||||
|
||||
7.8.5
|
||||
- added the EMS submission subsystem
|
||||
|
|
|
|||
|
|
@ -7,20 +7,6 @@ if ( typeof WebGUI == "undefined" ) {
|
|||
if ( typeof WebGUI.TemplateAttachments == "undefined" ) {
|
||||
WebGUI.TemplateAttachments = {};
|
||||
}
|
||||
if ( typeof WebGUI.TemplateAttachments.i18n == "undefined" ) {
|
||||
WebGUI.TemplateAttachments.i18n = new WebGUI.i18n( {
|
||||
namespaces : {
|
||||
'Asset_Template' : [
|
||||
"attachment header remove",
|
||||
"Already attached!",
|
||||
"No url!"
|
||||
]
|
||||
},
|
||||
onpreload : {
|
||||
fn : function(){}
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
var addClick = (function() {
|
||||
var uniqueId = 1;
|
||||
|
|
@ -181,7 +167,21 @@ var addClick = (function() {
|
|||
addAnchor.appendChild(tr);
|
||||
}
|
||||
|
||||
init();
|
||||
if ( typeof WebGUI.TemplateAttachments.i18n == "undefined" ) {
|
||||
WebGUI.TemplateAttachments.i18n = new WebGUI.i18n( {
|
||||
namespaces : {
|
||||
'Asset_Template' : [
|
||||
"attachment header remove",
|
||||
"Already attached!",
|
||||
"No url!"
|
||||
]
|
||||
},
|
||||
onpreload : {
|
||||
fn : init
|
||||
}
|
||||
} );
|
||||
}
|
||||
|
||||
return function() {
|
||||
var d = {
|
||||
index: nodes.index.value,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue