Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
erp5
Commits
d0e41b15
Commit
d0e41b15
authored
Jan 17, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] sync with new rjs_json_form
parent
7ec2fcd8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
31 deletions
+21
-31
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.js.js
...l_skins/erp5_only_office/onlyoffice/remote_settings.js.js
+21
-31
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/remote_settings.js.js
View file @
d0e41b15
/*jslint nomen: true, maxlen: 200, indent: 2*/
/*jslint nomen: true, maxlen: 200, indent: 2*/
/*global rJS, console, window, document, RSVP, Xmla
, Error
*/
/*global rJS, console, window, document, RSVP, Xmla*/
(
function
(
window
,
rJS
)
{
(
function
(
window
,
rJS
)
{
"
use strict
"
;
"
use strict
"
;
...
@@ -230,29 +230,21 @@
...
@@ -230,29 +230,21 @@
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
.
declareAcquiredMethod
(
"
notifyChange
"
,
"
notifyChange
"
)
.
allowPublicAcquisition
(
"
notifyChange
"
,
function
(
arr
,
scope
)
{
.
allowPublicAcquisition
(
"
notifyChange
"
,
function
(
arr
,
scope
)
{
var
g
=
this
,
var
g
=
this
,
p
=
arr
[
0
],
p
=
arr
[
0
]
.
path
,
gadget_settings
,
gadget_settings
,
path
;
path
;
function
f
(
p
)
{
function
f
(
settings_path
,
rerender_path
)
{
var
settings
;
return
g
.
getDeclaredGadget
(
"
xmla_settings
"
)
return
g
.
getDeclaredGadget
(
"
xmla_settings
"
)
.
push
(
function
(
gadget
)
{
.
push
(
function
(
gadget
)
{
gadget_settings
=
gadget
;
gadget_settings
=
gadget
;
return
gadget
.
getContent
(
p
);
return
gadget
.
getContent
(
settings_path
);
})
})
.
push
(
function
(
c
)
{
.
push
(
function
(
settings
)
{
settings
=
c
;
return
generateSchema
(
settings
);
return
generateSchema
(
c
);
})
})
.
push
(
function
(
schema
)
{
.
push
(
function
(
schema
)
{
return
gadget_settings
.
getGadgetByPath
(
p
+
'
/properties
'
)
return
gadget_settings
.
rerender
(
rerender_path
,
schema
);
.
push
(
function
(
ret
)
{
return
ret
.
gadget
.
rerender
({
schema
:
schema
,
value
:
convertOnMultiLevel
(
settings
,
'
/properties
'
)
});
});
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
g
.
notifyChange
();
return
g
.
notifyChange
();
...
@@ -262,7 +254,7 @@
...
@@ -262,7 +254,7 @@
for
(
path
in
g
.
props
.
xmla_connections
)
{
for
(
path
in
g
.
props
.
xmla_connections
)
{
if
(
g
.
props
.
xmla_connections
.
hasOwnProperty
(
path
)
&&
if
(
g
.
props
.
xmla_connections
.
hasOwnProperty
(
path
)
&&
p
.
startsWith
(
path
))
{
p
.
startsWith
(
path
))
{
return
f
(
path
);
return
f
(
path
,
g
.
props
.
xmla_connections
[
path
]
);
}
}
}
}
return
g
.
notifyChange
();
return
g
.
notifyChange
();
...
@@ -276,7 +268,6 @@
...
@@ -276,7 +268,6 @@
connection_path
;
connection_path
;
if
(
"
urn:jio:properties_from_xmla.connection.json
"
===
url
)
{
if
(
"
urn:jio:properties_from_xmla.connection.json
"
===
url
)
{
connection_path
=
path
.
split
(
'
/
'
).
slice
(
0
,
-
1
).
join
(
'
/
'
);
connection_path
=
path
.
split
(
'
/
'
).
slice
(
0
,
-
1
).
join
(
'
/
'
);
if
(
!
g
.
props
.
xmla_connections
[
connection_path
])
{
return
new
RSVP
.
Queue
()
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
.
push
(
function
()
{
if
(
g
.
props
.
init_value
)
{
if
(
g
.
props
.
init_value
)
{
...
@@ -288,11 +279,10 @@
...
@@ -288,11 +279,10 @@
return
generateSchema
(
settings
);
return
generateSchema
(
settings
);
})
})
.
push
(
function
(
s
)
{
.
push
(
function
(
s
)
{
g
.
props
.
xmla_connections
[
connection_path
]
=
false
;
g
.
props
.
xmla_connections
[
connection_path
]
=
path
;
return
s
;
return
s
;
});
});
}
}
}
throw
new
Error
(
"
urn: '
"
+
url
+
"
' not supported
"
);
throw
new
Error
(
"
urn: '
"
+
url
+
"
' not supported
"
);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment