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
Yusei Tahara
erp5
Commits
0c18f999
Commit
0c18f999
authored
Aug 02, 2011
by
Gabriel L. Oliveira
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor to only load UNG document list when necessary
Only loads UNG document list when on UNG main page.
parent
1ae31dc1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
31 deletions
+35
-31
bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung.js.xml
...ateItem/portal_skins/erp5_web_ung_theme/ung_js/ung.js.xml
+31
-30
bt5/erp5_web_ung_theme/bt/change_log
bt5/erp5_web_ung_theme/bt/change_log
+3
-0
bt5/erp5_web_ung_theme/bt/revision
bt5/erp5_web_ung_theme/bt/revision
+1
-1
No files found.
bt5/erp5_web_ung_theme/SkinTemplateItem/portal_skins/erp5_web_ung_theme/ung_js/ung.js.xml
View file @
0c18f999
...
...
@@ -620,36 +620,37 @@ $().ready(function(){\n
h3Tag.hide();\n
}\n
\n
//
render
main
document
listbox\n
$.ajax({\n
async:
false,\n
url:
\'WebSection_getUNGDocumentListPadAsJSON\',\n
data:
{pad_relative_url:
\'knowledge_pad_module/ung_knowledge_pad\',
mode:
\'web_front\'},\n
dataType:
\'json\',\n
success:
function(data){\n
external_data =
data\n
var
data_html =
$(data.body)[0]\n
//var
data_script =
$(data.body)[1].text\n
var
data_script =
data.javascript\n
\n
ung_listbox_container =
$(\'div#main_listbox-container\')\n
//
fill
body\n
ung_listbox_container.html(data_html);\n
//
attach
listener\n
ung_listbox_container.live(\'DOMSubtreeModified\',
checkUNGListbox)\n
//
eval
script\n
eval(data_script)\n
//
remove
class
\'portal-column\'
from
main
listbox\n
//
(as
it
should
not
interfere
in
user\'s
box
layout)\n
//
updateServerBoxColumnLayout
method
uses
\'div.portal-column\'
as
selector\n
ung_listbox_container.find(\'div.portal-column\')[0]
.className =
\'\'\n
\n
configureUNGSearch(data_script);\n
\n
wrapUpdater();\n
}\n
});\n
\n
if
(!$("div.gadget-column")
.length =
=
0)
{\n
//
render
main
document
listbox\n
$.ajax({\n
async:
false,\n
url:
\'WebSection_getUNGDocumentListPadAsJSON\',\n
data:
{pad_relative_url:
\'knowledge_pad_module/ung_knowledge_pad\',
mode:
\'web_front\'},\n
dataType:
\'json\',\n
success:
function(data){\n
external_data =
data\n
var
data_html =
$(data.body)[0]\n
//var
data_script =
$(data.body)[1].text\n
var
data_script =
data.javascript\n
\n
ung_listbox_container =
$(\'div#main_listbox-container\')\n
//
fill
body\n
ung_listbox_container.html(data_html);\n
//
attach
listener\n
ung_listbox_container.live(\'DOMSubtreeModified\',
checkUNGListbox)\n
//
eval
script\n
eval(data_script)\n
//
remove
class
\'portal-column\'
from
main
listbox\n
//
(as
it
should
not
interfere
in
user\'s
box
layout)\n
//
updateServerBoxColumnLayout
method
uses
\'div.portal-column\'
as
selector\n
ung_listbox_container.find(\'div.portal-column\')[0]
.className =
\'\'\n
\n
configureUNGSearch(data_script);\n
\n
wrapUpdater();\n
}\n
});\n
}\n
return
false;\n
});\n
\n
...
...
bt5/erp5_web_ung_theme/bt/change_log
View file @
0c18f999
2011-07-01 gabriel.oliveira
* Refactor to only load UNG document list when necessary
2011-07-01 gabriel.oliveira
* Remove old way of overriding preference for text editors
...
...
bt5/erp5_web_ung_theme/bt/revision
View file @
0c18f999
385
\ No newline at end of file
386
\ No newline at end of file
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