Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5-Boxiang
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
Hamza
erp5-Boxiang
Commits
6bffa0b9
Commit
6bffa0b9
authored
Oct 14, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_renderjs_ui: show domain info in search input and correct some name error
parent
2fe3e7ad
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
45 additions
and
27 deletions
+45
-27
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_filtereditor_js.xml
...eItem/web_page_module/rjs_gadget_erp5_filtereditor_js.xml
+3
-3
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
+3
-3
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
+3
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_html.xml
...Item/web_page_module/rjs_gadget_erp5_searchfield_html.xml
+3
-3
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
+30
-13
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_sorteditor_html.xml
...eItem/web_page_module/rjs_gadget_erp5_sorteditor_html.xml
+3
-3
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_filtereditor_js.xml
View file @
6bffa0b9
...
...
@@ -633,7 +633,7 @@
"submit",\n
false,\n
function
()
{\n
createTranslatedItem(gadget);\n
return
createTranslatedItem(gadget);\n
}\n
);\n
loopEventListener(\n
...
...
@@ -789,7 +789,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
5968.16440.8482
</string>
</value>
<value>
<string>
946.
26033.17518.45738
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -807,7 +807,7 @@
</tuple>
<state>
<tuple>
<float>
144
3627977.21
</float>
<float>
144
4745422.24
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_listbox_js.xml
View file @
6bffa0b9
...
...
@@ -505,7 +505,7 @@
})\n
.fail(function (error) {\n
if (error.target
&&
error.target.status === 500) {\n
return gadget.showQueryError(" Unsupport
r
ed Query");\n
return gadget.showQueryError(" Unsupported Query");\n
}\n
throw error;\n
});\n
...
...
@@ -806,7 +806,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.5
543.47694.6075
</string>
</value>
<value>
<string>
946.5
879.32028.47257
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -824,7 +824,7 @@
</tuple>
<state>
<tuple>
<float>
144
3622529.3
</float>
<float>
144
4722552.95
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_pt_form_list_js.xml
View file @
6bffa0b9
...
...
@@ -187,6 +187,7 @@
\n
if (options.domain_tree) {\n
form_options.form_definition.domain_tree = options.domain_tree;\n
search_options.domain_tree = options.domain_tree;\n
}\n
form_options.begin_from = options.begin_from;\n
form_options.view = options.view;\n
...
...
@@ -397,7 +398,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.441
2.4475.4949
</string>
</value>
<value>
<string>
946.441
4.7934.44748
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -415,7 +416,7 @@
</tuple>
<state>
<tuple>
<float>
144
3534607.25
</float>
<float>
144
4816468.81
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_html.xml
View file @
6bffa0b9
...
...
@@ -123,7 +123,7 @@
<script
id=
"panel-template"
type=
"text/x-handlebars-template"
>
\n
<div
class=
"field_container"
>
\n
<div
class=
"ui-field-contain"
>
\n
<div
class=
"
css-compatability-helper
"
>
\n
<div
class=
"
bottom
"
>
\n
<div
class=
"ui-input-text ui-body-{{theme}} ui-input-has-icon ui-corner-all ui-shadow-inset ui-input-has-clear {{status_class}} {{css_class}}"
>
\n
<form
class=
"save_form document_form"
>
\n
<input
type=
"text"
data-enhanced=
"true"
value=
"{{widget_value}}"
name=
"search"
{{widget_status_attribute}}
/>
\n
...
...
@@ -290,7 +290,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
5.13789.16491.47428
</string>
</value>
<value>
<string>
94
6.26055.51865.42035
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -308,7 +308,7 @@
</tuple>
<state>
<tuple>
<float>
144
0168925.51
</float>
<float>
144
4746743.09
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_searchfield_js.xml
View file @
6bffa0b9
...
...
@@ -101,7 +101,7 @@
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS, RSVP, loopEventListener, Handlebars */\n
/*global window, rJS, RSVP, loopEventListener, Handlebars
, QueryFactory, SimpleQuery, ComplexQuery, Query
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, RSVP, loopEventListener, Handlebars) {\n
"use strict";\n
...
...
@@ -147,7 +147,6 @@
append_attribute,\n
placeholder = "",\n
value,\n
hide_value,\n
is_disabled = option_dict.disabled,\n
search_gadget = this;\n
search_gadget.props.jio_key = option_dict.jio_key;\n
...
...
@@ -156,8 +155,12 @@
append_attribute = \' disabled="disabled\';\n
}\n
value = option_dict.extended_search || "";\n
if (option_dict.domain_tree) {\n
value = (value === "" ? option_dict.domain_tree : value + " AND " + option_dict.domain_tree);\n
}\n
\n
if (option_dict.hide_item) {\n
value = (value === ""? option_dict.hide_item : value + " AND " + option_dict.hide_item);\n
value = (value === ""
? option_dict.hide_item : value + " AND " + option_dict.hide_item);\n
}\n
return new RSVP.Queue()\n
.push(function () {\n
...
...
@@ -190,15 +193,17 @@
var gadget = this,\n
i,\n
query_list,\n
domain_tree_list,\n
domain_tree_query,\n
tmp,\n
hide_query,\n
search_query;\n
\n
function filterSubmit(
evt
) {\n
function filterSubmit() {\n
return gadget.triggerFilterEditor();\n
}\n
\n
function formSubmit(
evt
) {\n
function formSubmit() {\n
return new RSVP.Queue()\n
.push(function () {\n
return gadget.getContent();\n
...
...
@@ -206,6 +211,7 @@
.push(function (data) {\n
if (data.search) {\n
query_list = [];\n
domain_tree_list = [];\n
search_query = QueryFactory.create(data.search);\n
if (search_query instanceof SimpleQuery) {\n
tmp = [search_query];\n
...
...
@@ -214,8 +220,10 @@
}\n
for (i = 0; i < tmp.length; i += 1) {\n
if (tmp[i] instanceof SimpleQuery) {\n
if (tmp[i].key !== "catalog.uid") {\n
if (tmp[i].key !== "catalog.uid"
&& tmp[i].key.indexOf("category") === -1
) {\n
query_list.push(tmp[i]);\n
} else if (tmp[i].key.indexOf("category") !== -1) {\n
domain_tree_list.push(tmp[i]);\n
} else {\n
hide_query = new ComplexQuery({\n
operator: "AND",\n
...
...
@@ -229,16 +237,25 @@
}\n
}\n
\n
if (domain_tree_list.length) {\n
domain_tree_query = new ComplexQuery({\n
operator: "AND",\n
query_list: domain_tree_list,\n
type: "complex"\n
});\n
}\n
return gadget.redirect({jio_key: gadget.props.jio_key,\n
"extended_search": Query.objectToSearchText(new ComplexQuery({\n
operator: search_query.operator || "AND",\n
query_list: query_list,\n
type: "complex"\n
operator: search_query.operator || "AND",\n
query_list: query_list,\n
type: "complex"\n
})),\n
"hide_item": hide_query ? Query.objectToSearchText(hide_query) : ""});\n
"domain_tree": domain_tree_query ? Query.objectToSearchText(domain_tree_query) : "",\n
"hide_item": hide_query ? Query.objectToSearchText(hide_query) : ""\n
});\n
}\n
return gadget.redirect({jio_key: gadget.props.jio_key,\n
"extended_search": "", "hide_item": ""});\n
"extended_search": "", "
domain_tree": "", "
hide_item": ""});\n
});\n
}\n
// Listen to form submit\n
...
...
@@ -393,7 +410,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
4406.57134.42359
</string>
</value>
<value>
<string>
946.
27251.38084.62685
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -411,7 +428,7 @@
</tuple>
<state>
<tuple>
<float>
144
3534489.37
</float>
<float>
144
4824166.86
</float>
<string>
UTC
</string>
</tuple>
</state>
...
...
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_sorteditor_html.xml
View file @
6bffa0b9
...
...
@@ -141,7 +141,7 @@
</div>
\n
</div>
\n
\n
<h1
class=
"ui-title"
role=
"heading"
data-i18n=
"
s
ort Editor"
aria-level=
"1"
>
Sort Editor
</h1>
\n
<h1
class=
"ui-title"
role=
"heading"
data-i18n=
"
S
ort Editor"
aria-level=
"1"
>
Sort Editor
</h1>
\n
<div
class=
"ui-controlgroup ui-controlgroup-horizontal ui-btn-right"
>
\n
<div
class=
"ui-controlgroup-controls"
>
\n
<form
class=
"submit"
>
\n
...
...
@@ -299,7 +299,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
946.
4096.6867.34269
</string>
</value>
<value>
<string>
946.
5841.39273.59596
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -317,7 +317,7 @@
</tuple>
<state>
<tuple>
<float>
144
3620255.9
</float>
<float>
144
4813823.63
</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