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
Léo-Paul Géneau
erp5
Commits
73d35721
Commit
73d35721
authored
May 21, 2015
by
Sven Franck
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
erp5_web_ehr: change listbox widget to bt5-specific, jslint
parent
12b42371
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
926 additions
and
28 deletions
+926
-28
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_field_listbox_widget_html.xml
..._page_module/gadget_e5g_ehr_field_listbox_widget_html.xml
+405
-0
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_field_listbox_widget_js.xml
...eb_page_module/gadget_e5g_ehr_field_listbox_widget_js.xml
+493
-0
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_page_front_js.xml
...lateItem/web_page_module/gadget_e5g_ehr_page_front_js.xml
+12
-18
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_panel_html.xml
...emplateItem/web_page_module/gadget_e5g_ehr_panel_html.xml
+4
-4
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_panel_js.xml
...hTemplateItem/web_page_module/gadget_e5g_ehr_panel_js.xml
+12
-6
No files found.
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_field_listbox_widget_html.xml
0 → 100644
View file @
73d35721
This diff is collapsed.
Click to expand it.
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_field_listbox_widget_js.xml
0 → 100644
View file @
73d35721
This diff is collapsed.
Click to expand it.
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_page_front_js.xml
View file @
73d35721
...
...
@@ -98,11 +98,10 @@
<key>
<string>
text_content
</string>
</key>
<value>
<string
encoding=
"cdata"
>
<![CDATA[
/*global window, rJS */\n
/*global window, rJS
, RSVP
*/\n
/*jslint nomen: true, indent: 2, maxerr: 3 */\n
(function (window, rJS, RSVP) {\n
"use strict";\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// api\n
...
...
@@ -117,7 +116,7 @@
\n
var HARDCODED_GRID_LIST = [\n
[{\n
"gadget_href": "gadget_e
rp5
_field_listbox_widget.html",\n
"gadget_href": "gadget_e
5g_ecrm
_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=position_opportunity_module&view=view",\n
"gadget_title": "Open Positions",\n
"gadget_portal": "Position Opportunity",\n
...
...
@@ -127,7 +126,7 @@
"limit": [0, 5]\n
}\n
}, {\n
"gadget_href": "gadget_e
rp5
_field_listbox_widget.html",\n
"gadget_href": "gadget_e
5g_ecrm
_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=position_announcement_module&view=view",\n
"gadget_title": "Position Announcements",\n
"gadget_portal": "Position Announcement",\n
...
...
@@ -137,7 +136,7 @@
"limit": [0, 5]\n
}\n
}, {\n
"gadget_href": "gadget_e
rp5
_field_listbox_widget.html",\n
"gadget_href": "gadget_e
5g_ecrm
_field_listbox_widget.html",\n
"gadget_portal_link": "#jio_key=position_module&view=view",\n
"gadget_title": "Positions",\n
"gadget_portal": "Position",\n
...
...
@@ -158,17 +157,14 @@
/////////////////////////////////////////////////////////////////\n
\n
rJS(window)\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
\n
/////////////////////////////////////////////////////////////////\n
// ready\n
/////////////////////////////////////////////////////////////////\n
.ready(function (my_gadget) {\n
my_gadget.property_dict = {};\n
})\n
\n
\n
.ready(function (my_gadget) {\n
return my_gadget.getElement()\n
.push(function (my_element) {\n
...
...
@@ -187,15 +183,15 @@
/////////////////////////////////////////////////////////////////\n
// published methods\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// declared methods\n
/////////////////////////////////////////////////////////////////\n
\n
\n
/////////////////////////////////////////////////////////////////\n
// declared service\n
/////////////////////////////////////////////////////////////////\n
.declareMethod("render", function (
my_option_dict
) {\n
.declareMethod("render", function () {\n
var gadget = this;\n
return new RSVP.Queue()\n
.push(function () {\n
...
...
@@ -215,10 +211,8 @@
);\n
});\n
});\n
\n
\n
}(window, rJS, RSVP));\n
\n
]]>
</string>
</value>
...
...
@@ -342,7 +336,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -356,7 +350,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
2.5902.49888.12731
</string>
</value>
<value>
<string>
94
3.10739.23810.12168
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -374,7 +368,7 @@
</tuple>
<state>
<tuple>
<float>
14
28413179.61
</float>
<float>
14
32204059.88
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_panel_html.xml
View file @
73d35721
...
...
@@ -172,7 +172,7 @@
</script>
\n
\n
<!-- custom script -->
\n
<script
src=
"gadget_e5g_e
project
_panel.js"
type=
"text/javascript"
></script>
\n
<script
src=
"gadget_e5g_e
hr
_panel.js"
type=
"text/javascript"
></script>
\n
\n
</head>
\n
<body>
\n
...
...
@@ -303,7 +303,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -317,7 +317,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
2.12904.39071.6604
</string>
</value>
<value>
<string>
94
3.10732.49761.18961
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -335,7 +335,7 @@
</tuple>
<state>
<tuple>
<float>
14
28494521.01
</float>
<float>
14
32211639.42
</float>
<string>
GMT
</string>
</tuple>
</state>
...
...
bt5/erp5_web_ehr/PathTemplateItem/web_page_module/gadget_e5g_ehr_panel_js.xml
View file @
73d35721
...
...
@@ -212,7 +212,9 @@
\n
return
new
RSVP.Queue()\n
.push(function
()
{\n
return
panel_gadget.declareGadget("gadget_erp5_searchfield.html",
{"scope":
"search"});\n
return
panel_gadget.declareGadget("gadget_erp5_searchfield.html",
{\n
"scope":
"search"\n
});\n
})\n
.push(function
(my_search_gadget)
{\n
var
parent_node,
search_option_dict =
{};\n
...
...
@@ -225,7 +227,10 @@
search_option_dict.extended_search =
""
;\n
parent_node =
panel_gadget.__element.querySelector(".ui-content");\n
\n
parent_node.insertBefore(my_search_gadget.__element,
parent_node.firstChild);\n
parent_node.insertBefore(\n
my_search_gadget.__element,\n
parent_node.firstChild\n
);\n
return
my_search_gadget.render(search_option_dict);\n
})\n
.push(function
()
{\n
...
...
@@ -273,7 +278,8 @@
});\n
});\n
\n
}(window,
rJS,
Handlebars,
jQuery,
RSVP,
loopEventListener));
}(window,
rJS,
Handlebars,
jQuery,
RSVP,
loopEventListener));\n
]]
></string>
</value>
</item>
...
...
@@ -396,7 +402,7 @@
</item>
<item>
<key>
<string>
actor
</string>
</key>
<value>
<string>
sven
</string>
</value>
<value>
<string>
zope
</string>
</value>
</item>
<item>
<key>
<string>
comment
</string>
</key>
...
...
@@ -410,7 +416,7 @@
</item>
<item>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
2.12901.9110.57122
</string>
</value>
<value>
<string>
94
3.10732.49761.18961
</string>
</value>
</item>
<item>
<key>
<string>
state
</string>
</key>
...
...
@@ -428,7 +434,7 @@
</tuple>
<state>
<tuple>
<float>
14
28488109.58
</float>
<float>
14
32203929.33
</float>
<string>
GMT
</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