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
0959ffa1
Commit
0959ffa1
authored
Apr 08, 2019
by
Boris Kocherov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_only_office] use notifyChange in olap_wizard
parent
a1d7fef2
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 @
0959ffa1
...
@@ -192,6 +192,18 @@ DocsAPI.DocEditor.version = function () {
...
@@ -192,6 +192,18 @@ DocsAPI.DocEditor.version = function () {
console
.
error
(
e
);
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
()
{
.
allowPublicAcquisition
(
"
getRemoteSettings
"
,
function
()
{
return
this
.
jio_getAttachment
(
'
/
'
,
'
remote_settings.json
'
,
{
format
:
'
json
'
})
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 @
0959ffa1
...
@@ -103,16 +103,6 @@
...
@@ -103,16 +103,6 @@
return
queue
;
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
)
{
function
discoverDimensions
(
schema
,
used_dimensions
,
opt
)
{
return
xmla_request_retry
(
"
discoverMDDimensions
"
,
opt
)
return
xmla_request_retry
(
"
discoverMDDimensions
"
,
opt
)
.
push
(
undefined
,
function
(
error
)
{
.
push
(
undefined
,
function
(
error
)
{
...
@@ -364,7 +354,6 @@
...
@@ -364,7 +354,6 @@
function
rerender_once
(
connection_settings
,
sub_gadget
)
{
function
rerender_once
(
connection_settings
,
sub_gadget
)
{
return
sub_gadget
.
getContent
()
return
sub_gadget
.
getContent
()
.
push
(
function
(
content
)
{
.
push
(
function
(
content
)
{
console
.
log
(
content
);
return
generateChoiceSchema
(
connection_settings
,
used_diemensions
,
content
);
return
generateChoiceSchema
(
connection_settings
,
used_diemensions
,
content
);
})
})
.
push
(
function
(
schema
)
{
.
push
(
function
(
schema
)
{
...
@@ -376,7 +365,7 @@
...
@@ -376,7 +365,7 @@
});
});
}
}
queue
return
queue
.
push
(
function
()
{
.
push
(
function
()
{
return
g
.
getDeclaredGadget
(
"
olap_wizard
"
);
return
g
.
getDeclaredGadget
(
"
olap_wizard
"
);
})
})
...
@@ -392,7 +381,7 @@
...
@@ -392,7 +381,7 @@
sub_gadget
=
arr
[
1
];
sub_gadget
=
arr
[
1
];
return
rerender_once
(
connection_settings
,
sub_gadget
)
return
rerender_once
(
connection_settings
,
sub_gadget
)
.
push
(
function
(
changed
)
{
.
push
(
function
(
changed
)
{
if
(
changed
.
length
>
0
)
{
if
(
changed
&&
changed
.
length
>
0
)
{
if
(
changed
.
indexOf
(
'
/dimension
'
)
>=
0
)
{
if
(
changed
.
indexOf
(
'
/dimension
'
)
>=
0
)
{
return
allRerender
();
return
allRerender
();
}
}
...
@@ -400,14 +389,10 @@
...
@@ -400,14 +389,10 @@
}
}
})
})
.
push
(
function
(
changed
)
{
.
push
(
function
(
changed
)
{
if
(
changed
.
length
>
0
)
{
if
(
changed
&&
changed
.
length
>
0
)
{
return
rerender_once
(
connection_settings
,
sub_gadget
);
return
rerender_once
(
connection_settings
,
sub_gadget
);
}
}
});
});
})
.
push
(
function
()
{
// return g.notifyChange();
return
print_content
(
g
);
});
});
}
}
...
@@ -420,7 +405,7 @@
...
@@ -420,7 +405,7 @@
}));
}));
})
})
.
push
(
function
()
{
.
push
(
function
()
{
return
[]
;
return
g
.
notifyChange
()
;
});
});
};
};
...
@@ -444,11 +429,13 @@
...
@@ -444,11 +429,13 @@
if
(
relPath
===
"
/dimension
"
)
{
if
(
relPath
===
"
/dimension
"
)
{
return
allRerender
();
return
allRerender
();
}
}
return
rerender
(
s
);
return
rerender
(
s
)
.
push
(
function
()
{
return
g
.
notifyChange
();
});
}
}
}
}
// return g.notifyChange();
return
g
.
notifyChange
();
return
print_content
(
g
);
})
})
.
allowPublicAcquisition
(
"
resolveExternalReference
"
,
function
(
arr
)
{
.
allowPublicAcquisition
(
"
resolveExternalReference
"
,
function
(
arr
)
{
var
g
=
this
,
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