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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
Romain Courteaud
erp5
Commits
a403cacd
Commit
a403cacd
authored
Apr 08, 2019
by
Boris Kocherov
Committed by
Romain Courteaud
Apr 24, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] use notifyChange in olap_wizard
parent
5167b89e
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
22 deletions
+21
-22
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
...tem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
+12
-0
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
...ortal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
+9
-22
No files found.
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice.gadget.js.js
View file @
a403cacd
...
...
@@ -192,6 +192,18 @@ DocsAPI.DocEditor.version = function () {
console
.
error
(
e
);
});
}
if
(
scope
===
"
xmlawizard
"
)
{
return
this
.
getDeclaredGadget
(
scope
)
.
push
(
function
(
g
)
{
return
g
.
getContent
();
})
.
push
(
function
(
data
)
{
console
.
log
(
JSON
.
stringify
(
data
));
})
.
push
(
undefined
,
function
(
e
)
{
console
.
error
(
e
);
});
}
})
.
allowPublicAcquisition
(
"
getRemoteSettings
"
,
function
()
{
return
this
.
jio_getAttachment
(
'
/
'
,
'
remote_settings.json
'
,
{
format
:
'
json
'
})
...
...
bt5/erp5_only_office/SkinTemplateItem/portal_skins/erp5_only_office/onlyoffice/olap_wizard.js.js
View file @
a403cacd
...
...
@@ -103,16 +103,6 @@
return
queue
;
}
function
print_content
(
gadget
)
{
return
gadget
.
getDeclaredGadget
(
"
olap_wizard
"
)
.
push
(
function
(
g
)
{
return
g
.
getContent
();
})
.
push
(
function
(
v
)
{
console
.
log
(
JSON
.
stringify
(
v
));
});
}
function
discoverDimensions
(
schema
,
used_dimensions
,
opt
)
{
return
xmla_request_retry
(
"
discoverMDDimensions
"
,
opt
)
.
push
(
undefined
,
function
(
error
)
{
...
...
@@ -364,7 +354,6 @@
function
rerender_once
(
connection_settings
,
sub_gadget
)
{
return
sub_gadget
.
getContent
()
.
push
(
function
(
content
)
{
console
.
log
(
content
);
return
generateChoiceSchema
(
connection_settings
,
used_diemensions
,
content
);
})
.
push
(
function
(
schema
)
{
...
...
@@ -376,7 +365,7 @@
});
}
queue
return
queue
.
push
(
function
()
{
return
g
.
getDeclaredGadget
(
"
olap_wizard
"
);
})
...
...
@@ -392,7 +381,7 @@
sub_gadget
=
arr
[
1
];
return
rerender_once
(
connection_settings
,
sub_gadget
)
.
push
(
function
(
changed
)
{
if
(
changed
.
length
>
0
)
{
if
(
changed
&&
changed
.
length
>
0
)
{
if
(
changed
.
indexOf
(
'
/dimension
'
)
>=
0
)
{
return
allRerender
();
}
...
...
@@ -400,14 +389,10 @@
}
})
.
push
(
function
(
changed
)
{
if
(
changed
.
length
>
0
)
{
if
(
changed
&&
changed
.
length
>
0
)
{
return
rerender_once
(
connection_settings
,
sub_gadget
);
}
});
})
.
push
(
function
()
{
// return g.notifyChange();
return
print_content
(
g
);
});
}
...
...
@@ -420,7 +405,7 @@
}));
})
.
push
(
function
()
{
return
[]
;
return
g
.
notifyChange
()
;
});
};
...
...
@@ -444,11 +429,13 @@
if
(
relPath
===
"
/dimension
"
)
{
return
allRerender
();
}
return
rerender
(
s
);
return
rerender
(
s
)
.
push
(
function
()
{
return
g
.
notifyChange
();
});
}
}
// return g.notifyChange();
return
print_content
(
g
);
return
g
.
notifyChange
();
})
.
allowPublicAcquisition
(
"
resolveExternalReference
"
,
function
(
arr
)
{
var
g
=
this
,
...
...
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