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
Laurent S
erp5
Commits
be7079a9
Commit
be7079a9
authored
Jan 06, 2015
by
Xiaowu Zhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update renderjs to version 0.7.4
Add IE supported
parent
f15d8280
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
35 deletions
+50
-35
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/renderjs.js.xml
...emplateItem/portal_skins/erp5_xhtml_style/renderjs.js.xml
+50
-35
No files found.
product/ERP5/bootstrap/erp5_xhtml_style/SkinTemplateItem/portal_skins/erp5_xhtml_style/renderjs.js.xml
View file @
be7079a9
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
<dictionary>
<dictionary>
<item>
<item>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<key>
<string>
_EtagSupport__etag
</string>
</key>
<value>
<string>
ts
16495763.71
</string>
</value>
<value>
<string>
ts
20546947.22
</string>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
__name__
</string>
</key>
<key>
<string>
__name__
</string>
</key>
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
</item>
</item>
<item>
<item>
<key>
<string>
size
</string>
</key>
<key>
<string>
size
</string>
</key>
<value>
<int>
7
4799
</int>
</value>
<value>
<int>
7
5348
</int>
</value>
</item>
</item>
<item>
<item>
<key>
<string>
title
</string>
</key>
<key>
<string>
title
</string>
</key>
...
@@ -708,6 +708,14 @@
...
@@ -708,6 +708,14 @@
};\n
};\n
}(DOMParser));\n
}(DOMParser));\n
\n
\n
;//
IE
does
not
support
have
Document.prototype.contains.\n
if
(typeof
document.contains
!==
\'function\')
{\n
Document.prototype.contains =
function(node)
{\n
if
(
node =
==
this
||
node.parentNode =
==
this)\n
return
true;\n
return
this.documentElement.contains(node);\n
}\n
}\n
;/*!
RenderJs
*/\n
;/*!
RenderJs
*/\n
/*jslint
nomen:
true*/\n
/*jslint
nomen:
true*/\n
\n
\n
...
@@ -1215,21 +1223,25 @@
...
@@ -1215,21 +1223,25 @@
gadget_instance.__chan.bind("declareMethod",\n
gadget_instance.__chan.bind("declareMethod",\n
function
(trans,
method_name)
{\n
function
(trans,
method_name)
{\n
gadget_instance[method_name]
=
function
()
{\n
gadget_instance[method_name]
=
function
()
{\n
var
argument_list =
arguments;\n
var
argument_list =
arguments,\n
return
new
RSVP.Promise(function
(resolve,
reject)
{\n
wait_promise =
new
RSVP.Promise(function
(resolve,
reject)
{\n
gadget_instance.__chan.call({\n
gadget_instance.__chan.call({\n
method:
"methodCall",\n
method:
"methodCall",\n
params:
[\n
params:
[\n
method_name,\n
method_name,\n
Array.prototype.slice.call(argument_list,
0)],\n
Array.prototype.slice.call(argument_list,
0)],\n
success:
function
(s)
{\n
success:
function
(s)
{\n
resolve(s);\n
resolve(s);\n
},\n
},\n
error:
function
(e)
{\n
error:
function
(e)
{\n
reject(e);\n
reject(e);\n
}\n
}\n
});\n
});\n
return
new
RSVP.Queue()\n
.push(function
()
{\n
return
wait_promise;\n
});\n
});\n
});\n
};\n
};\n
return
"OK";\n
return
"OK";\n
});\n
});\n
...
@@ -1615,25 +1627,28 @@
...
@@ -1615,25 +1627,28 @@
if (document_element.nodeType === 9) {\n
if (document_element.nodeType === 9) {\n
settings.title = document_element.title;\n
settings.title = document_element.title;\n
\n
\n
for (i = 0; i
< document_element.head.children.length
;
i
+=
1)
{\n
if (document_element.head !== null) {\n
element =
document_element.head.children[i];\n
for (i = 0; i
< document_element.head.children.length
;
i
+=
1)
{\n
if
(element.href
!==
null)
{\n
element =
document_element.head.children[i];\n
//
XXX
Manage
relative
URL
during
extraction
of
URLs\n
if
(element.href
!==
null)
{\n
//
element.href
returns
absolute
URL
in
firefox
but
""
in
chrome;\n
//
XXX
Manage
relative
URL
during
extraction
of
URLs\n
if
(
element.rel =
==
"stylesheet")
{\n
//
element.href
returns
absolute
URL
in
firefox
but
""
in
chrome;\n
settings.required_css_list.push(\n
if
(
element.rel =
==
"stylesheet")
{\n
renderJS.getAbsoluteURL(element.getAttribute("href"),
url)\n
settings.required_css_list.push(\n
);\n
renderJS.getAbsoluteURL(element.getAttribute("href"),
url)\n
}
else
if
(
element.nodeName =
==
"SCRIPT"
&&\n
);\n
(
element.type =
==
"text/javascript"
||\n
}
else
if
(
element.nodeName =
==
"SCRIPT"
&&\n
!element.type))
{\n
(
element.type =
==
"text/javascript"
||\n
settings.required_js_list.push(\n
!element.type))
{\n
renderJS.getAbsoluteURL(element.getAttribute("src"),
url)\n
settings.required_js_list.push(\n
);\n
renderJS.getAbsoluteURL(element.getAttribute("src"),
url)\n
}
else
if
(
element.rel =
==
"http://www.renderjs.org/rel/interface")
{\n
);\n
settings.interface_list.push(\n
}
else
if
(
element.rel =
==\n
renderJS.getAbsoluteURL(element.getAttribute("href"),
url)\n
"http://www.renderjs.org/rel/interface")
{\n
);\n
settings.interface_list.push(\n
renderJS.getAbsoluteURL(element.getAttribute("href"),
url)\n
);\n
}\n
}\n
}\n
}\n
}\n
}\n
}\n
...
...
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