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
Labels
Merge Requests
138
Merge Requests
138
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Jobs
Commits
Open sidebar
nexedi
erp5
Commits
f7973779
Commit
f7973779
authored
Oct 27, 2016
by
Boris Kocherov
Committed by
Boris Kocherov
Nov 21, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_officejs: gadget_officejs_router_js.js jslint fix
parent
4aa4bfc5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
112 additions
and
112 deletions
+112
-112
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
...TemplateItem/web_page_module/gadget_officejs_router_js.js
+110
-110
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml
...emplateItem/web_page_module/gadget_officejs_router_js.xml
+2
-2
No files found.
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.js
View file @
f7973779
/*global window, rJS, jIO, URI, location, console, document, RSVP, loopEventListener, navigator */
/*global window, rJS, jIO, URI, location, console, document, RSVP, loopEventListener, navigator
, XMLHttpRequest, ProgressEvent
*/
/*jslint nomen: true, indent: 2, maxerr:
3
*/
/*jslint nomen: true, indent: 2, maxerr:
15
*/
(
function
(
window
,
rJS
)
{
(
function
(
window
,
rJS
)
{
"
use strict
"
;
"
use strict
"
;
...
@@ -131,7 +131,7 @@
...
@@ -131,7 +131,7 @@
if
(
modification_date
)
{
if
(
modification_date
)
{
modification_date
=
'
AND modification_date:>="
'
modification_date
=
'
AND modification_date:>="
'
+
modification_date
+
'
"
'
+
modification_date
+
'
"
'
;
}
else
{
}
else
{
modification_date
=
""
;
modification_date
=
""
;
}
}
...
@@ -246,8 +246,7 @@
...
@@ -246,8 +246,7 @@
if
(
options
!==
undefined
&&
options
.
toExternal
)
{
if
(
options
!==
undefined
&&
options
.
toExternal
)
{
window
.
location
.
replace
(
options
.
url
);
window
.
location
.
replace
(
options
.
url
);
return
RSVP
.
timeout
(
REDIRECT_TIMEOUT
);
// timeout if not redirected
return
RSVP
.
timeout
(
REDIRECT_TIMEOUT
);
// timeout if not redirected
}
}
else
{
else
{
return
this
.
getCommandUrlFor
(
options
)
return
this
.
getCommandUrlFor
(
options
)
.
push
(
function
(
hash
)
{
.
push
(
function
(
hash
)
{
window
.
location
.
replace
(
hash
);
window
.
location
.
replace
(
hash
);
...
@@ -311,7 +310,7 @@
...
@@ -311,7 +310,7 @@
function
push
(
a
,
b
)
{
function
push
(
a
,
b
)
{
queue
.
push
(
function
()
{
queue
.
push
(
function
()
{
if
(
a
==
"
portal_type
"
)
{
if
(
a
==
=
"
portal_type
"
)
{
NAME
=
b
.
toLowerCase
();
NAME
=
b
.
toLowerCase
();
}
}
return
gadget
.
setSetting
(
a
,
b
);
return
gadget
.
setSetting
(
a
,
b
);
...
@@ -332,7 +331,7 @@
...
@@ -332,7 +331,7 @@
return
gadget
.
props
.
start_deferred
.
promise
;
return
gadget
.
props
.
start_deferred
.
promise
;
})
})
.
push
(
function
()
{
.
push
(
function
()
{
if
((
'
serviceWorker
'
in
navigator
)
&&
(
NAME
!=
"
web page
"
))
{
if
((
'
serviceWorker
'
in
navigator
)
&&
(
NAME
!=
=
"
web page
"
))
{
return
jIO
.
createJIO
(
get_jio_cache_storage
(
NAME
)).
allDocs
({
return
jIO
.
createJIO
(
get_jio_cache_storage
(
NAME
)).
allDocs
({
query
:
''
,
query
:
''
,
sort_on
:
[
sort_on
:
[
...
@@ -344,17 +343,18 @@
...
@@ -344,17 +343,18 @@
.
push
(
function
(
data
)
{
.
push
(
function
(
data
)
{
var
modification_date
,
var
modification_date
,
jio_store
;
jio_store
;
if
(
data
.
data
.
total_rows
==
1
)
{
if
(
data
.
data
.
total_rows
==
=
1
)
{
modification_date
=
data
.
data
.
rows
[
0
].
value
.
modification_date
modification_date
=
data
.
data
.
rows
[
0
].
value
.
modification_date
;
}
}
jio_store
=
get_jio_replicate_storage
(
NAME
);
jio_store
=
get_jio_replicate_storage
(
NAME
);
return
gadget
.
getSetting
(
'
jio_
'
+
NAME
+
'
_cache_description
'
)
return
gadget
.
getSetting
(
'
jio_
'
+
NAME
+
'
_cache_description
'
)
.
push
(
function
(
query
)
{
.
push
(
function
(
query
)
{
if
(
jio_store
.
__storage
.
_query_options
.
query
==
query
)
{
if
(
jio_store
.
__storage
.
_query_options
.
query
==
=
query
)
{
return
get_jio_replicate_storage
(
NAME
,
modification_date
).
repair
();
return
get_jio_replicate_storage
(
NAME
,
modification_date
).
repair
();
}
else
{
}
else
{
return
gadget
.
setSetting
(
return
gadget
.
setSetting
(
'
jio_
'
+
NAME
+
'
_cache_description
'
,
jio_store
.
__storage
.
_query_options
.
query
'
jio_
'
+
NAME
+
'
_cache_description
'
,
jio_store
.
__storage
.
_query_options
.
query
)
)
.
push
(
function
()
{
.
push
(
function
()
{
return
jio_store
.
repair
();
return
jio_store
.
repair
();
...
@@ -381,7 +381,7 @@
...
@@ -381,7 +381,7 @@
// registration failed
// registration failed
console
.
log
(
'
Registration failed with
'
+
error
);
console
.
log
(
'
Registration failed with
'
+
error
);
});
});
return
{}
return
{}
;
});
});
});
});
}
else
{
}
else
{
...
...
bt5/erp5_officejs/PathTemplateItem/web_page_module/gadget_officejs_router_js.xml
View file @
f7973779
...
@@ -224,7 +224,7 @@
...
@@ -224,7 +224,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
95
3.49230.16074.49851
</string>
</value>
<value>
<string>
95
4.57717.26579.17015
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -242,7 +242,7 @@
...
@@ -242,7 +242,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
147
3230498.18
</float>
<float>
147
7585369.16
</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