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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Mukul
erp5
Commits
b82099f0
Commit
b82099f0
authored
Apr 09, 2018
by
Mukul
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs][erp5_mutlimedia] Adds auto play feature in officejs media player.
parent
47be0acf
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
4 deletions
+13
-4
bt5/erp5_multimedia/SkinTemplateItem/portal_skins/erp5_multimedia/gadget_custom_player.js.js
...m/portal_skins/erp5_multimedia/gadget_custom_player.js.js
+10
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_sound_view_js.js
...Item/web_page_module/gadget_officejs_jio_sound_view_js.js
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_sound_view_js.xml
...tem/web_page_module/gadget_officejs_jio_sound_view_js.xml
+2
-2
No files found.
bt5/erp5_multimedia/SkinTemplateItem/portal_skins/erp5_multimedia/gadget_custom_player.js.js
View file @
b82099f0
...
@@ -6,12 +6,13 @@
...
@@ -6,12 +6,13 @@
"
use strict
"
;
"
use strict
"
;
rJS
(
window
)
rJS
(
window
)
.
setState
({
play
:
false
,
mute
:
false
})
.
setState
({
play
:
false
,
mute
:
false
,
auto_play
:
false
})
//////////////////////////////////////////////
//////////////////////////////////////////////
// Acquire Method
// Acquire Method
//////////////////////////////////////////////
//////////////////////////////////////////////
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
jio_get
"
,
"
jio_get
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
/////////////////////////////////////////////
/////////////////////////////////////////////
// Declare Method
// Declare Method
...
@@ -27,6 +28,9 @@
...
@@ -27,6 +28,9 @@
})
})
.
allowPublicAcquisition
(
'
onEnd
'
,
function
()
{
.
allowPublicAcquisition
(
'
onEnd
'
,
function
()
{
if
(
this
.
state
.
auto_play
)
{
return
this
.
redirect
({
command
:
'
selection_next
'
});
}
return
this
.
changeState
({
play
:
false
,
mute
:
false
});
return
this
.
changeState
({
play
:
false
,
mute
:
false
});
})
})
...
@@ -86,6 +90,11 @@
...
@@ -86,6 +90,11 @@
id
:
params
.
value
,
id
:
params
.
value
,
name
:
params
.
name
name
:
params
.
name
});
});
})
.
push
(
function
()
{
if
(
params
.
auto_play
)
{
return
gadget
.
changeState
({
play
:
true
,
auto_play
:
true
});
}
});
});
})
})
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_sound_view_js.js
View file @
b82099f0
...
@@ -113,7 +113,7 @@
...
@@ -113,7 +113,7 @@
"
key
"
:
"
player_content
"
,
"
key
"
:
"
player_content
"
,
"
hidden
"
:
0
,
"
hidden
"
:
0
,
"
type
"
:
"
GadgetField
"
,
"
type
"
:
"
GadgetField
"
,
"
renderjs_extra
"
:
'
{"name": "data"}
'
,
"
renderjs_extra
"
:
'
{"name": "data"
, "auto_play": true
}
'
,
"
url
"
:
"
gadget_custom_player.html
"
,
"
url
"
:
"
gadget_custom_player.html
"
,
"
sandbox
"
:
"
public
"
"
sandbox
"
:
"
public
"
}
}
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_jio_sound_view_js.xml
View file @
b82099f0
...
@@ -238,7 +238,7 @@
...
@@ -238,7 +238,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
96
5.42272.6476.3334
8
</string>
</value>
<value>
<string>
96
6.48813.59167.2409
8
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -256,7 +256,7 @@
...
@@ -256,7 +256,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
15
19294814.86
</float>
<float>
15
23286693.67
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</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