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
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Vincent Bechu
erp5
Commits
3c7716b4
Commit
3c7716b4
authored
Nov 23, 2017
by
Vincent Bechu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Update officejs panels to use hide panel in desktop view
parent
f2c3d48c
Changes
8
Show whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
76 additions
and
28 deletions
+76
-28
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_panel.js.js
...Item/web_page_module/gadget_officejs_bookmark_panel.js.js
+16
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_panel.js.xml
...tem/web_page_module/gadget_officejs_bookmark_panel.js.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.js
...Item/web_page_module/gadget_officejs_erp5_ojs_panel_js.js
+16
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.xml
...tem/web_page_module/gadget_officejs_erp5_ojs_panel_js.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_drive_app_panel_js.js
...athTemplateItem/web_page_module/ojs_drive_app_panel_js.js
+16
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_drive_app_panel_js.xml
...thTemplateItem/web_page_module/ojs_drive_app_panel_js.xml
+3
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_wallsearch_panel_js.js
...thTemplateItem/web_page_module/ojs_wallsearch_panel_js.js
+16
-4
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_wallsearch_panel_js.xml
...hTemplateItem/web_page_module/ojs_wallsearch_panel_js.xml
+3
-3
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_panel.js.js
View file @
3c7716b4
...
...
@@ -8,6 +8,7 @@
/////////////////////////////////////////////////////////////////
// Precompile templates while loading the first gadget instance
var
gadget_klass
=
rJS
(
window
),
matchMedia
=
window
.
matchMedia
(
"
(min-width: 85em)
"
),
template_element
=
gadget_klass
.
__template_element
,
panel_template_header
=
Handlebars
.
compile
(
template_element
.
getElementById
(
"
panel-template-header
"
)
...
...
@@ -25,7 +26,7 @@
gadget_klass
.
setState
({
visible
:
false
,
desktop
:
false
desktop
:
matchMedia
.
matches
})
//////////////////////////////////////////////
// acquired method
...
...
@@ -35,6 +36,7 @@
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
setDesktopMode
"
,
"
setDesktopMode
"
)
/////////////////////////////////////////////////////////////////
// declared methods
...
...
@@ -97,6 +99,14 @@
}
}
}
if
(
modification_dict
.
hasOwnProperty
(
'
desktop
'
)
||
modification_dict
.
hasOwnProperty
(
"
visible
"
))
{
queue
.
push
(
function
()
{
return
gadget
.
setDesktopMode
(
gadget
.
state
.
visible
&&
gadget
.
state
.
desktop
);
});
}
if
(
modification_dict
.
hasOwnProperty
(
"
global
"
))
{
queue
...
...
@@ -246,13 +256,15 @@
event
,
context
=
this
;
function
extractSizeAndDispatch
()
{
if
(
window
.
matchMedia
(
"
(min-width: 85em)
"
)
.
matches
)
{
if
(
matchMedia
.
matches
)
{
return
context
.
changeState
({
desktop
:
true
desktop
:
true
,
visible
:
true
});
}
return
context
.
changeState
({
desktop
:
false
desktop
:
false
,
visible
:
false
});
}
result
=
loopEventListener
(
window
,
'
resize
'
,
false
,
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_bookmark_panel.js.xml
View file @
3c7716b4
...
...
@@ -213,7 +213,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -227,7 +227,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.9269.443.55364
</string>
</value>
<value>
<string>
96
3.49595.35665.18636
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -245,7 +245,7 @@
</tuple>
<state>
<tuple>
<float>
15
01746660.8
</float>
<float>
15
11882697.0
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.js
View file @
3c7716b4
...
...
@@ -8,6 +8,7 @@
/////////////////////////////////////////////////////////////////
// Precompile templates while loading the first gadget instance
var
gadget_klass
=
rJS
(
window
),
matchMedia
=
window
.
matchMedia
(
"
(min-width: 85em)
"
),
template_element
=
gadget_klass
.
__template_element
,
panel_template_header
=
Handlebars
.
compile
(
template_element
.
getElementById
(
"
panel-template-header
"
)
...
...
@@ -25,7 +26,7 @@
gadget_klass
.
setState
({
visible
:
false
,
desktop
:
false
desktop
:
matchMedia
.
matches
})
//////////////////////////////////////////////
// acquired method
...
...
@@ -35,6 +36,7 @@
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
setDesktopMode
"
,
"
setDesktopMode
"
)
/////////////////////////////////////////////////////////////////
// declared methods
...
...
@@ -97,6 +99,14 @@
}
}
}
if
(
modification_dict
.
hasOwnProperty
(
'
desktop
'
)
||
modification_dict
.
hasOwnProperty
(
"
visible
"
))
{
queue
.
push
(
function
()
{
return
gadget
.
setDesktopMode
(
gadget
.
state
.
visible
&&
gadget
.
state
.
desktop
);
});
}
if
(
modification_dict
.
hasOwnProperty
(
"
global
"
))
{
queue
...
...
@@ -271,13 +281,15 @@
event
,
context
=
this
;
function
extractSizeAndDispatch
()
{
if
(
window
.
matchMedia
(
"
(min-width: 85em)
"
)
.
matches
)
{
if
(
matchMedia
.
matches
)
{
return
context
.
changeState
({
desktop
:
true
desktop
:
true
,
visible
:
true
});
}
return
context
.
changeState
({
desktop
:
false
desktop
:
false
,
visible
:
false
});
}
result
=
loopEventListener
(
window
,
'
resize
'
,
false
,
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_erp5_ojs_panel_js.xml
View file @
3c7716b4
...
...
@@ -213,7 +213,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -227,7 +227,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.6228.20782.273
</string>
</value>
<value>
<string>
96
3.49595.22396.38980
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -245,7 +245,7 @@
</tuple>
<state>
<tuple>
<float>
15
01682796.44
</float>
<float>
15
11882685.21
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_drive_app_panel_js.js
View file @
3c7716b4
...
...
@@ -8,6 +8,7 @@
/////////////////////////////////////////////////////////////////
// Precompile templates while loading the first gadget instance
var
gadget_klass
=
rJS
(
window
),
matchMedia
=
window
.
matchMedia
(
"
(min-width: 85em)
"
),
template_element
=
gadget_klass
.
__template_element
,
panel_template_header
=
Handlebars
.
compile
(
template_element
.
getElementById
(
"
panel-template-header
"
)
...
...
@@ -25,7 +26,7 @@
gadget_klass
.
setState
({
visible
:
false
,
desktop
:
false
desktop
:
matchMedia
.
matches
})
//////////////////////////////////////////////
// acquired method
...
...
@@ -35,6 +36,7 @@
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
setDesktopMode
"
,
"
setDesktopMode
"
)
/////////////////////////////////////////////////////////////////
// declared methods
...
...
@@ -97,6 +99,14 @@
}
}
}
if
(
modification_dict
.
hasOwnProperty
(
'
desktop
'
)
||
modification_dict
.
hasOwnProperty
(
"
visible
"
))
{
queue
.
push
(
function
()
{
return
gadget
.
setDesktopMode
(
gadget
.
state
.
visible
&&
gadget
.
state
.
desktop
);
});
}
if
(
modification_dict
.
hasOwnProperty
(
"
global
"
))
{
queue
...
...
@@ -273,13 +283,15 @@
event
,
context
=
this
;
function
extractSizeAndDispatch
()
{
if
(
window
.
matchMedia
(
"
(min-width: 85em)
"
)
.
matches
)
{
if
(
matchMedia
.
matches
)
{
return
context
.
changeState
({
desktop
:
true
desktop
:
true
,
visible
:
true
});
}
return
context
.
changeState
({
desktop
:
false
desktop
:
false
,
visible
:
false
});
}
result
=
loopEventListener
(
window
,
'
resize
'
,
false
,
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_drive_app_panel_js.xml
View file @
3c7716b4
...
...
@@ -216,7 +216,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
1.39082.1332.7492
</string>
</value>
<value>
<string>
96
3.49595.385.2423
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
15
03907015.64
</float>
<float>
15
11882675.53
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_wallsearch_panel_js.js
View file @
3c7716b4
...
...
@@ -8,6 +8,7 @@
/////////////////////////////////////////////////////////////////
// Precompile templates while loading the first gadget instance
var
gadget_klass
=
rJS
(
window
),
matchMedia
=
window
.
matchMedia
(
"
(min-width: 85em)
"
),
template_element
=
gadget_klass
.
__template_element
,
panel_template_header
=
Handlebars
.
compile
(
template_element
.
getElementById
(
"
panel-template-header
"
)
...
...
@@ -25,7 +26,7 @@
gadget_klass
.
setState
({
visible
:
false
,
desktop
:
false
desktop
:
matchMedia
.
matches
})
//////////////////////////////////////////////
// acquired method
...
...
@@ -35,6 +36,7 @@
.
declareAcquiredMethod
(
"
translate
"
,
"
translate
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
setDesktopMode
"
,
"
setDesktopMode
"
)
/////////////////////////////////////////////////////////////////
// declared methods
...
...
@@ -97,6 +99,14 @@
}
}
}
if
(
modification_dict
.
hasOwnProperty
(
'
desktop
'
)
||
modification_dict
.
hasOwnProperty
(
"
visible
"
))
{
queue
.
push
(
function
()
{
return
gadget
.
setDesktopMode
(
gadget
.
state
.
visible
&&
gadget
.
state
.
desktop
);
});
}
if
(
modification_dict
.
hasOwnProperty
(
"
global
"
))
{
queue
...
...
@@ -271,13 +281,15 @@
event
,
context
=
this
;
function
extractSizeAndDispatch
()
{
if
(
window
.
matchMedia
(
"
(min-width: 85em)
"
)
.
matches
)
{
if
(
matchMedia
.
matches
)
{
return
context
.
changeState
({
desktop
:
true
desktop
:
true
,
visible
:
true
});
}
return
context
.
changeState
({
desktop
:
false
desktop
:
false
,
visible
:
false
});
}
result
=
loopEventListener
(
window
,
'
resize
'
,
false
,
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_wallsearch_panel_js.xml
View file @
3c7716b4
...
...
@@ -216,7 +216,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
zope
</string>
</value>
<value>
<string>
vincent
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
2.22807.3679.17032
</string>
</value>
<value>
<string>
96
3.49597.57331.30481
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
15
06429553.2
</float>
<float>
15
11882794.78
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
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