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
preetwinder
erp5
Commits
3423b92f
Commit
3423b92f
authored
Aug 08, 2017
by
preetwinder
Committed by
preetwinder
Aug 09, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Change document link in panel and change login/logout button
parent
8218538b
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
25 additions
and
18 deletions
+25
-18
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fbstorage_js.js
...cejs/PathTemplateItem/web_page_module/jio_fbstorage_js.js
+0
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fbstorage_js.xml
...ejs/PathTemplateItem/web_page_module/jio_fbstorage_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_html.html
...eItem/web_page_module/ojs_facebook_configurator_html.html
+11
-3
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_html.xml
...teItem/web_page_module/ojs_facebook_configurator_html.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_js.js
...plateItem/web_page_module/ojs_facebook_configurator_js.js
+5
-5
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_js.xml
...lateItem/web_page_module/ojs_facebook_configurator_js.xml
+2
-2
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_fb_posts_panel_js.js
...PathTemplateItem/web_page_module/ojs_fb_posts_panel_js.js
+1
-1
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_fb_posts_panel_js.xml
...athTemplateItem/web_page_module/ojs_fb_posts_panel_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fbstorage_js.js
View file @
3423b92f
...
...
@@ -22,7 +22,6 @@
}
this
.
_access_token
=
spec
.
access_token
;
this
.
_user_id
=
spec
.
user_id
;
console
.
log
(
'
FEFAULTFIELDLIST
'
,
spec
.
default_field_list
);
this
.
_default_field_list
=
spec
.
default_field_list
;
delete
this
.
_default_field_list
.
__id
;
this
.
_default_limit
=
spec
.
default_limit
||
500
;
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fbstorage_js.xml
View file @
3423b92f
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.1
2176.51879.2508
</string>
</value>
<value>
<string>
961.1
6463.42275.10052
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
150
1859584.99
</float>
<float>
150
2116781.14
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_html.html
View file @
3423b92f
...
...
@@ -16,8 +16,16 @@
</head>
<body>
<div
id=
"status"
>
Please log into the app
</div>
<button
type=
"button"
id=
"login"
>
Log In
</button>
<button
type=
"button"
id=
"logout"
>
Log Out
</button>
<section
class=
"ui-content-header-plain"
>
<h3
class=
"ui-content-title ui-body-c"
>
<span
id=
"status"
class=
"ui-icon ui-icon-custom ui-icon-file-text-o"
>
Please Log into the app
</span>
</h3>
</section>
<section
class=
"ui-body-c ui-content-section"
>
<ul
data-role=
"listview"
class=
"document-listview"
>
<li>
<a
href=
""
data-i18n=
"Log In"
id=
"login"
>
Log In
</a>
</li>
<li>
<a
href=
""
data-i18n=
"Log Out"
id=
"logout"
>
Log Out
</a>
</li>
</ul>
</section>
</body>
</html>
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_html.xml
View file @
3423b92f
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.16
171.40999.28740
</string>
</value>
<value>
<string>
961.16
470.22894.2645
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
1502
099276.9
</float>
<float>
1502
117181.46
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_js.js
View file @
3423b92f
...
...
@@ -96,11 +96,11 @@ gadget_klass
});
FB
.
getLoginStatus
(
function
(
response
)
{
if
(
response
.
status
==
'
connected
'
)
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged in
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged in
'
;
//gadget.changeState({logged: true});
}
else
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged out
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged out
'
;
}
})
})
...
...
@@ -109,11 +109,11 @@ gadget_klass
var
status
;
if
(
modification_dict
.
hasOwnProperty
(
'
logged
'
))
{
if
(
modification_dict
.
logged
)
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged in
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged in
'
;
return
setFacebookConfiguration
(
gadget
,
FB
.
getAccessToken
(),
FB
.
getUserID
());
}
else
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged out
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged out
'
;
}
}
})
...
...
@@ -136,7 +136,7 @@ gadget_klass
}
else
if
(
event
.
target
.
id
==
'
logout
'
)
{
FB
.
logout
(
function
(
response
)
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged out
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged out
'
;
gadget
.
changeState
({
logged
:
false
});
});
}
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_js.xml
View file @
3423b92f
...
...
@@ -236,7 +236,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.1
2175.57436.34747
</string>
</value>
<value>
<string>
961.1
6472.57754.53162
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -254,7 +254,7 @@
</tuple>
<state>
<tuple>
<float>
1502
099292.64
</float>
<float>
1502
117334.01
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_fb_posts_panel_js.js
View file @
3423b92f
...
...
@@ -140,7 +140,7 @@
// Update the global links
.
push
(
function
()
{
return
RSVP
.
all
([
context
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
ojs_document_list
"
}}),
context
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
ojs_
fb_posts_
document_list
"
}}),
context
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
ojs_facebook_configurator
"
}}),
context
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
ojs_sync
"
,
'
auto_repair
'
:
true
}})
]);
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_fb_posts_panel_js.xml
View file @
3423b92f
...
...
@@ -230,7 +230,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
961.16
115.56693.11332
</string>
</value>
<value>
<string>
961.16
408.6890.18005
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -248,7 +248,7 @@
</tuple>
<state>
<tuple>
<float>
1502
099092.95
</float>
<float>
1502
113976.19
</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