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
5bb7aa75
Commit
5bb7aa75
authored
Aug 08, 2017
by
preetwinder
Committed by
preetwinder
Aug 24, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_officejs] Change document link in panel and change login/logout button
parent
326acd35
Changes
8
Show 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 @
5bb7aa75
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
}
}
this
.
_access_token
=
spec
.
access_token
;
this
.
_access_token
=
spec
.
access_token
;
this
.
_user_id
=
spec
.
user_id
;
this
.
_user_id
=
spec
.
user_id
;
console
.
log
(
'
FEFAULTFIELDLIST
'
,
spec
.
default_field_list
);
this
.
_default_field_list
=
spec
.
default_field_list
;
this
.
_default_field_list
=
spec
.
default_field_list
;
delete
this
.
_default_field_list
.
__id
;
delete
this
.
_default_field_list
.
__id
;
this
.
_default_limit
=
spec
.
default_limit
||
500
;
this
.
_default_limit
=
spec
.
default_limit
||
500
;
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/jio_fbstorage_js.xml
View file @
5bb7aa75
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<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>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
150
1859584.99
</float>
<float>
150
2116781.14
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_html.html
View file @
5bb7aa75
...
@@ -16,8 +16,16 @@
...
@@ -16,8 +16,16 @@
</head>
</head>
<body>
<body>
<div
id=
"status"
>
Please log into the app
</div>
<section
class=
"ui-content-header-plain"
>
<button
type=
"button"
id=
"login"
>
Log In
</button>
<h3
class=
"ui-content-title ui-body-c"
>
<button
type=
"button"
id=
"logout"
>
Log Out
</button>
<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>
</body>
</html>
</html>
\ No newline at end of file
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_html.xml
View file @
5bb7aa75
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<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>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1502
099276.9
</float>
<float>
1502
117181.46
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_js.js
View file @
5bb7aa75
...
@@ -96,11 +96,11 @@ gadget_klass
...
@@ -96,11 +96,11 @@ gadget_klass
});
});
FB
.
getLoginStatus
(
function
(
response
)
{
FB
.
getLoginStatus
(
function
(
response
)
{
if
(
response
.
status
==
'
connected
'
)
{
if
(
response
.
status
==
'
connected
'
)
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged in
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged in
'
;
//gadget.changeState({logged: true});
//gadget.changeState({logged: true});
}
}
else
{
else
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged out
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged out
'
;
}
}
})
})
})
})
...
@@ -109,11 +109,11 @@ gadget_klass
...
@@ -109,11 +109,11 @@ gadget_klass
var
status
;
var
status
;
if
(
modification_dict
.
hasOwnProperty
(
'
logged
'
))
{
if
(
modification_dict
.
hasOwnProperty
(
'
logged
'
))
{
if
(
modification_dict
.
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
());
return
setFacebookConfiguration
(
gadget
,
FB
.
getAccessToken
(),
FB
.
getUserID
());
}
}
else
{
else
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged out
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged out
'
;
}
}
}
}
})
})
...
@@ -136,7 +136,7 @@ gadget_klass
...
@@ -136,7 +136,7 @@ gadget_klass
}
}
else
if
(
event
.
target
.
id
==
'
logout
'
)
{
else
if
(
event
.
target
.
id
==
'
logout
'
)
{
FB
.
logout
(
function
(
response
)
{
FB
.
logout
(
function
(
response
)
{
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
l
ogged out
'
;
document
.
getElementById
(
'
status
'
).
innerHTML
=
'
L
ogged out
'
;
gadget
.
changeState
({
logged
:
false
});
gadget
.
changeState
({
logged
:
false
});
});
});
}
}
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_facebook_configurator_js.xml
View file @
5bb7aa75
...
@@ -236,7 +236,7 @@
...
@@ -236,7 +236,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<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>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -254,7 +254,7 @@
...
@@ -254,7 +254,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1502
099292.64
</float>
<float>
1502
117334.01
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/ojs_fb_posts_panel_js.js
View file @
5bb7aa75
...
@@ -140,7 +140,7 @@
...
@@ -140,7 +140,7 @@
// Update the global links
// Update the global links
.
push
(
function
()
{
.
push
(
function
()
{
return
RSVP
.
all
([
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_facebook_configurator
"
}}),
context
.
getUrlFor
({
command
:
'
display
'
,
options
:
{
page
:
"
ojs_sync
"
,
'
auto_repair
'
:
true
}})
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 @
5bb7aa75
...
@@ -230,7 +230,7 @@
...
@@ -230,7 +230,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<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>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -248,7 +248,7 @@
...
@@ -248,7 +248,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
1502
099092.95
</float>
<float>
1502
113976.19
</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