Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
mynij
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
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
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mynij
mynij
Commits
e41236ef
Commit
e41236ef
authored
Sep 22, 2021
by
Alain Takoudjou
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_mynij_search: redirect to search page after load a source json file
parent
42f85155
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
10 deletions
+26
-10
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.js
...teItem/web_page_module/gadget_erp5_page_load_source_js.js
+24
-8
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.xml
...eItem/web_page_module/gadget_erp5_page_load_source_js.xml
+2
-2
No files found.
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.js
View file @
e41236ef
...
...
@@ -10,6 +10,7 @@
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
getUrlParameter
"
,
"
getUrlParameter
"
)
.
declareAcquiredMethod
(
"
getSetting
"
,
"
getSetting
"
)
.
declareAcquiredMethod
(
"
setSetting
"
,
"
setSetting
"
)
.
declareAcquiredMethod
(
"
notifySubmitted
"
,
"
notifySubmitted
"
)
.
ready
(
function
()
{
...
...
@@ -31,7 +32,7 @@
return
new
RSVP
.
Queue
()
.
push
(
function
()
{
return
gadget
.
updateHeader
({
page_title
:
"
Torrent
Source import
"
page_title
:
"
JSON
Source import
"
});
});
})
...
...
@@ -89,15 +90,30 @@
})
.
push
(
function
(
result
)
{
var
count
=
result
.
length
;
return
gadget
.
getSetting
(
"
build_dict
"
,
{})
.
push
(
function
(
build_dict
)
{
var
i
;
for
(
i
=
0
;
i
<
result
.
length
;
i
+=
1
)
{
build_dict
[
result
[
i
]]
=
{
links
:
source_list
[
i
].
links
,
index_name
:
source_list
[
i
].
title
,
jio_key
:
result
[
i
],
id
:
Date
.
now
()
};
}
return
gadget
.
setSetting
(
"
build_dict
"
,
build_dict
);
})
.
push
(
function
()
{
return
gadget
.
notifySubmitted
({
message
:
count
+
"
Source(s) correctly imported!
"
,
message
:
count
+
"
Source(s) correctly imported!
\n
"
+
"
Build of imported source(s) will start!
"
,
status
:
"
success
"
});
})
.
push
(
function
()
{
var
options
=
{
page
:
"
ojs_local_controller
"
};
if
(
count
>
0
)
{
options
.
jio_key
=
result
[
0
];
}
var
options
=
{
page
:
"
mynij_search
"
};
return
gadget
.
redirect
({
command
:
'
display
'
,
options
:
options
});
});
});
...
...
bt5/erp5_web_mynij_search/PathTemplateItem/web_page_module/gadget_erp5_page_load_source_js.xml
View file @
e41236ef
...
...
@@ -242,7 +242,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
994.
43703.49451.32375
</string>
</value>
<value>
<string>
994.
55525.49822.47940
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -260,7 +260,7 @@
</tuple>
<state>
<tuple>
<float>
163
1197348.88
</float>
<float>
163
2233519.34
</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