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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Sebastian
erp5
Commits
4c986964
Commit
4c986964
authored
Mar 02, 2016
by
Romain Courteaud
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[erp5_web_renderjs_ui] Add "refresh" acquisition method to rerender the main page gadget
parent
404e2c86
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
2 deletions
+18
-2
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
...i/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
+18
-2
No files found.
bt5/erp5_web_renderjs_ui/PathTemplateItem/web_page_module/rjs_gadget_erp5_js.xml
View file @
4c986964
...
@@ -123,6 +123,7 @@
...
@@ -123,6 +123,7 @@
scope: MAIN_SCOPE\n
scope: MAIN_SCOPE\n
})\n
})\n
.push(function (page_gadget) {\n
.push(function (page_gadget) {\n
gadget.props.m_options_string = JSON.stringify(options);\n
if (page_gadget.render === undefined) {\n
if (page_gadget.render === undefined) {\n
return [page_gadget];\n
return [page_gadget];\n
}\n
}\n
...
@@ -411,6 +412,21 @@
...
@@ -411,6 +412,21 @@
.allowPublicAcquisition(\'notifyChange\',
function
()
{\n
.allowPublicAcquisition(\'notifyChange\',
function
()
{\n
return
route(this,
"header",
\'notifyChange\');\n
return
route(this,
"header",
\'notifyChange\');\n
})\n
})\n
\n
.allowPublicAcquisition(\'refresh\',
function
()
{\n
var
gadget =
this;\n
return
gadget.getDeclaredGadget(MAIN_SCOPE)\n
.push(function
(main)
{\n
if
(main.render
!==
undefined)
{\n
return
main.render(JSON.parse(gadget.props.m_options_string))\n
.push(function
()
{\n
$(gadget.props.content_element).trigger("create");\n
});\n
}\n
},
function
()
{\n
return;\n
});\n
})\n
\n
\n
.allowPublicAcquisition("translate",
function
(argument_list)
{\n
.allowPublicAcquisition("translate",
function
(argument_list)
{\n
return
this.getDeclaredGadget("translation_gadget")\n
return
this.getDeclaredGadget("translation_gadget")\n
...
@@ -788,7 +804,7 @@
...
@@ -788,7 +804,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
serial
</string>
</key>
<key>
<string>
serial
</string>
</key>
<value>
<string>
94
8.30082.49058.20804
</string>
</value>
<value>
<string>
94
9.35490.40299.23381
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
state
</string>
</key>
<key>
<string>
state
</string>
</key>
...
@@ -806,7 +822,7 @@
...
@@ -806,7 +822,7 @@
</tuple>
</tuple>
<state>
<state>
<tuple>
<tuple>
<float>
145
2766839.17
</float>
<float>
145
6908114.56
</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