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
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
Levin Zimmermann
erp5
Commits
7567a1b0
Commit
7567a1b0
authored
Jan 25, 2022
by
Gabriel Monnerat
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: clean up
parent
e2152113
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
38 deletions
+35
-38
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
...emplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
+1
-12
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
...mplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
...teItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
+22
-4
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
...eItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
+2
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.js
...ateItem/web_page_module/rjs_gadget_erp5_searchfield_js.js
+6
-16
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
...teItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
+2
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.js
View file @
7567a1b0
...
@@ -1219,18 +1219,6 @@
...
@@ -1219,18 +1219,6 @@
gadget
.
state
.
option_list
.
length
>
0
&&
gadget
.
state
.
option_list
.
length
>
0
&&
gadget
.
state
.
graphic_type
!==
""
)
{
gadget
.
state
.
graphic_type
!==
""
)
{
result_queue
result_queue
.
push
(
function
()
{
return
gadget
.
getUrlParameter
(
"
display_graphic_panel
"
)
})
.
push
(
function
(
result
)
{
if
(
result
)
{
return
gadget
.
renderEditorPanel
(
"
gadget_erp5_graphic_editor.html
"
,
{
graphic_option_list
:
gadget
.
state
.
option_list
,
graphic_type
:
gadget
.
state
.
graphic_type
});
}
})
.
push
(
function
()
{
.
push
(
function
()
{
return
gadget
.
declareGadget
(
'
gadget_graphic.html
'
,
{
return
gadget
.
declareGadget
(
'
gadget_graphic.html
'
,
{
scope
:
'
gadget_graphic
'
,
scope
:
'
gadget_graphic
'
,
...
@@ -1337,6 +1325,7 @@
...
@@ -1337,6 +1325,7 @@
search_column_list
:
JSON
.
parse
(
this
.
state
.
search_column_list_json
),
search_column_list
:
JSON
.
parse
(
this
.
state
.
search_column_list_json
),
domain_list
:
domain_list
,
domain_list
:
domain_list
,
domain_dict
:
domain_dict
,
domain_dict
:
domain_dict
,
graphic_option_list
:
this
.
state
.
option_list
,
begin_from
:
this
.
state
.
key
+
"
_begin_from
"
begin_from
:
this
.
state
.
key
+
"
_begin_from
"
};
};
})
})
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
7567a1b0
...
@@ -240,7 +240,7 @@
...
@@ -240,7 +240,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.4
3623.34440.2457
</string>
</value>
<value>
<string>
997.4
8220.58774.24832
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -258,7 +258,7 @@
...
@@ -258,7 +258,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
164
2798544.4
</float>
<float>
164
3074611.1
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.js
View file @
7567a1b0
/*global window, rJS, renderFormViewHeader, renderFormListHeader,
/*global window, rJS, renderFormViewHeader, renderFormListHeader,
SimpleQuery, ComplexQuery,
SimpleQuery, ComplexQuery,
Query, QueryFactory, ensureArray, triggerListboxClipboardAction,
Query, QueryFactory, ensureArray, triggerListboxClipboardAction,
declareGadgetClassCanHandleListboxClipboardAction*/
declareGadgetClassCanHandleListboxClipboardAction
, RSVP
*/
/*jslint nomen: true, indent: 2, maxerr: 3, continue: true */
/*jslint nomen: true, indent: 2, maxerr: 3, continue: true */
(
function
(
window
,
rJS
,
renderFormViewHeader
,
renderFormListHeader
,
(
function
(
window
,
rJS
,
renderFormViewHeader
,
renderFormListHeader
,
SimpleQuery
,
ComplexQuery
,
SimpleQuery
,
ComplexQuery
,
Query
,
QueryFactory
,
ensureArray
,
triggerListboxClipboardAction
,
Query
,
QueryFactory
,
ensureArray
,
triggerListboxClipboardAction
,
declareGadgetClassCanHandleListboxClipboardAction
)
{
declareGadgetClassCanHandleListboxClipboardAction
,
RSVP
)
{
"
use strict
"
;
"
use strict
"
;
function
updateSearchQueryFromSelection
(
extended_search
,
checked_uid_list
,
function
updateSearchQueryFromSelection
(
extended_search
,
checked_uid_list
,
...
@@ -268,7 +268,25 @@
...
@@ -268,7 +268,25 @@
return
result_list
;
return
result_list
;
});
});
})
})
.
allowPublicAcquisition
(
"
triggerListboxGraphicSelection
"
,
function
triggerListboxGraphicSelection
()
{
var
gadget
=
this
;
return
this
.
getDeclaredGadget
(
"
erp5_form
"
)
.
push
(
function
(
declared_gadget
)
{
return
RSVP
.
all
([
declared_gadget
.
getListboxInfo
(),
gadget
.
getUrlParameter
(
"
graphic_type
"
)
]);
})
.
push
(
function
(
result_list
)
{
var
result_dict
=
result_list
[
0
],
graphic_type
=
result_list
[
1
];
return
gadget
.
renderEditorPanel
(
"
gadget_erp5_graphic_editor.html
"
,
{
graphic_option_list
:
result_dict
.
graphic_option_list
,
graphic_type
:
result_list
[
1
]
});
});
})
.
allowPublicAcquisition
(
"
triggerListboxSelectAction
"
,
function
triggerListboxSelectAction
(
argument_list
)
{
.
allowPublicAcquisition
(
"
triggerListboxSelectAction
"
,
function
triggerListboxSelectAction
(
argument_list
)
{
var
action
=
argument_list
[
0
],
var
action
=
argument_list
[
0
],
checked_uid_list
=
argument_list
[
1
],
checked_uid_list
=
argument_list
[
1
],
...
@@ -312,4 +330,4 @@
...
@@ -312,4 +330,4 @@
}(
window
,
rJS
,
renderFormViewHeader
,
renderFormListHeader
,
SimpleQuery
,
}(
window
,
rJS
,
renderFormViewHeader
,
renderFormListHeader
,
SimpleQuery
,
ComplexQuery
,
Query
,
ComplexQuery
,
Query
,
QueryFactory
,
ensureArray
,
triggerListboxClipboardAction
,
QueryFactory
,
ensureArray
,
triggerListboxClipboardAction
,
declareGadgetClassCanHandleListboxClipboardAction
));
declareGadgetClassCanHandleListboxClipboardAction
,
RSVP
));
\ No newline at end of file
\ No newline at end of file
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
7567a1b0
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.
39340.10291.26709
</string>
</value>
<value>
<string>
997.
48212.37929.9830
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
164
2802822.3
</float>
<float>
164
3074253.32
</float>
<string>
UTC
</string>
<string>
UTC
</string>
</tuple>
</tuple>
</state>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.js
View file @
7567a1b0
...
@@ -36,7 +36,8 @@
...
@@ -36,7 +36,8 @@
};
};
return
this
.
changeState
(
state_dict
);
return
this
.
changeState
(
state_dict
);
})
})
.
declareAcquiredMethod
(
"
triggerListboxGraphicSelection
"
,
"
triggerListboxGraphicSelection
"
)
.
onStateChange
(
function
(
modification_dict
)
{
.
onStateChange
(
function
(
modification_dict
)
{
var
gadget
=
this
,
var
gadget
=
this
,
i
,
i
,
...
@@ -242,27 +243,16 @@
...
@@ -242,27 +243,16 @@
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
redirect
"
,
"
redirect
"
)
.
declareAcquiredMethod
(
"
triggerSubmit
"
,
"
triggerSubmit
"
)
.
declareAcquiredMethod
(
"
triggerSubmit
"
,
"
triggerSubmit
"
)
.
onEvent
(
'
click
'
,
function
(
evt
)
{
.
onEvent
(
'
click
'
,
function
(
evt
)
{
var
gadget
=
this
;
if
(
evt
.
target
.
tagName
===
'
BUTTON
'
)
{
if
(
evt
.
target
.
tagName
===
'
BUTTON
'
)
{
if
((
evt
.
target
.
nodeType
===
Node
.
ELEMENT_NODE
)
&&
if
((
evt
.
target
.
nodeType
===
Node
.
ELEMENT_NODE
)
&&
(
evt
.
target
.
value
))
{
(
evt
.
target
.
value
))
{
// Open the filter panel if one 'search' button is clicked
// Open the filter panel if one 'search' button is clicked
evt
.
preventDefault
();
evt
.
preventDefault
();
return
this
.
triggerSubmit
({
focus_on
:
parseInt
(
evt
.
target
.
value
,
10
)});
return
this
.
triggerSubmit
({
focus_on
:
parseInt
(
evt
.
target
.
value
,
10
)});
}
else
if
(
evt
.
target
.
classList
.
contains
(
"
graphic-button
"
))
{
}
else
if
(
evt
.
target
.
classList
.
contains
(
"
graphic-button
"
)
||
return
this
.
redirect
({
evt
.
target
.
classList
.
contains
(
"
change-graphic-button
"
))
{
command
:
"
change
"
,
return
gadget
.
triggerListboxGraphicSelection
();
options
:
{
extended_search
:
""
}
});
}
else
if
(
evt
.
target
.
classList
.
contains
(
"
change-graphic-button
"
))
{
return
this
.
redirect
({
command
:
"
change
"
,
options
:
{
display_graphic_panel
:
true
,
extended_search
:
""
}
});
}
}
}
}
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
View file @
7567a1b0
...
@@ -234,7 +234,7 @@
...
@@ -234,7 +234,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
997.4
3698.44863.10427
</string>
</value>
<value>
<string>
997.4
8219.25108.64102
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -252,7 +252,7 @@
...
@@ -252,7 +252,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
16430
61187.04
</float>
<float>
16430
74808.7
</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