Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
officejs
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
officejs
Commits
118de918
Commit
118de918
authored
May 16, 2012
by
Ivan Tyagov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try to use jquery from adsafe block.
parent
cf80d76d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
12 deletions
+16
-12
poc/erp5_gadget_interaction/SkinTemplateItem/portal_skins/erp5_gadget_interaction/adsafe.xml
...plateItem/portal_skins/erp5_gadget_interaction/adsafe.xml
+15
-11
poc/erp5_gadget_interaction/bt/revision
poc/erp5_gadget_interaction/bt/revision
+1
-1
No files found.
poc/erp5_gadget_interaction/SkinTemplateItem/portal_skins/erp5_gadget_interaction/adsafe.xml
View file @
118de918
...
@@ -41,7 +41,9 @@
...
@@ -41,7 +41,9 @@
\074script src="adsafe.js"\076\074/script\076\n
\074script src="adsafe.js"\076\074/script\076\n
\074script src="jquery/core/jquery.js"\076\074/script\076\n
\074script src="jquery/core/jquery.js"\076\074/script\076\n
\074script src="jquery/plugin/renderjs/renderjs.js"\076\074/script\076\n
\074script src="jquery/plugin/renderjs/renderjs.js"\076\074/script\076\n
\074script src="interactor.js"\076\074/script\076\n
\074script src="jquery/ui/js/jquery-ui.js"\076\074/script\076\n
\n
\074link rel="stylesheet" type="text/css" media="screen" href="jquery/ui/css/erp5-theme/jquery-ui.css" /\076\n
\n
\n
\074/head\076\n
\074/head\076\n
\n
\n
...
@@ -49,7 +51,8 @@
...
@@ -49,7 +51,8 @@
\n
\n
\074h1\076test\074/h1\076\n
\074h1\076test\074/h1\076\n
\n
\n
\074div id="content" gadget="test_gadgets/A"\076\074/div\076\n
\074!-- \074div id="content" gadget="test_gadgets/A"\076\074/div\076 --\076\n
\n
\n
\n
\074script type="text/javascript" language="javascript"\076\n
\074script type="text/javascript" language="javascript"\076\n
//\074![CDATA[\n
//\074![CDATA[\n
...
@@ -57,7 +60,7 @@
...
@@ -57,7 +60,7 @@
$(document).ready(function() {\n
$(document).ready(function() {\n
RenderJs.bootstrap($("#content"));\n
RenderJs.bootstrap($("#content"));\n
// XXX: we use timeouts as we do not know if gadget structure is yet ready, how to do that in a generic way?\n
// XXX: we use timeouts as we do not know if gadget structure is yet ready, how to do that in a generic way?\n
window.setTimeout(\'RenderJs.update($("#content"));\', DEFAULT_GADGET_DOM_READY_TIMEOUT);\n
//
window.setTimeout(\'RenderJs.update($("#content"));\', DEFAULT_GADGET_DOM_READY_TIMEOUT);\n
});\n
});\n
//]]\076\n
//]]\076\n
\074/script\076\n
\074/script\076\n
...
@@ -65,15 +68,16 @@
...
@@ -65,15 +68,16 @@
\074!-- Adsafe test --\076\n
\074!-- Adsafe test --\076\n
\074div id="WIDGETNAME_"\076\n
\074div id="WIDGETNAME_"\076\n
Adsafe\n
Adsafe\n
\n
\074input type=text autocomplete=off\076\n
\n
\074script type="text/javascript" language="javascript"\076\n
\074script type="text/javascript" language="javascript"\076\n
ADSAFE.go("WIDGETNAME_", function (dom) {\n
ADSAFE.go("WIDGETNAME_", function (dom) {\n
"use strict";\n
"use strict";\n
eval("alert(\'1\');");\n
var input = dom.q("input_text");\n
// This is where the code for the widget is placed. It can access\n
alert(input);\n
// the document through the dom parameter, allowing it indirect\n
input.datepicker({ dateFormat: \'dd/mm/yy\' });\n
// access to html elements, allowing it to change content, styling,\n
input.datepicker(\'setDate\', Date());\n
// and behavior.\n
\n
});\n
});\n
\074/script\076\n
\074/script\076\n
\074/div\076\n
\074/div\076\n
...
...
poc/erp5_gadget_interaction/bt/revision
View file @
118de918
6
7
\ No newline at end of file
\ 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