move ajax utility urls to portal root
This commit is contained in:
parent
7aaa4ebabc
commit
0e51a6fdfa
|
@ -47,8 +47,10 @@
|
|||
</div>
|
||||
|
||||
<div tal:define="batch search_batch">
|
||||
<form method="get" action="./#resultsbox">
|
||||
<div metal:use-macro="view/batch_macros/macros/navigation" />
|
||||
<div metal:use-macro="view/batch_macros/macros/feed" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -80,8 +82,10 @@
|
|||
</div>
|
||||
|
||||
<div tal:define="batch search_batch">
|
||||
<form method="get" action="./#resultsbox">
|
||||
<div metal:use-macro="view/batch_macros/macros/navigation" />
|
||||
<div metal:use-macro="view/batch_macros/macros/feed" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -113,8 +117,10 @@
|
|||
</div>
|
||||
|
||||
<div tal:define="batch search_batch">
|
||||
<form method="get" action="./#resultsbox">
|
||||
<div metal:use-macro="view/batch_macros/macros/navigation" />
|
||||
<div metal:use-macro="view/batch_macros/macros/feed" />
|
||||
</form>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
@ -127,6 +133,7 @@
|
|||
|
||||
<div tal:replace="structure provider:plone.belowcontentbody" />
|
||||
|
||||
<script type="text/javascript" tal:content="string: var PORTAL_URL='${view/portal_url}';"/>
|
||||
<script type="text/javascript">
|
||||
function update_input(input) {
|
||||
var s = '';
|
||||
|
@ -170,9 +177,9 @@ function sync_elements(index, elem, url)
|
|||
}
|
||||
}
|
||||
|
||||
function sync_authors(index, elem) { sync_elements(index, elem, './listAuthors'); }
|
||||
function sync_polgroups(index, elem) { sync_elements(index, elem, './listPolgroups'); }
|
||||
function sync_topics(index, elem) { sync_elements(index, elem, './listTopics'); }
|
||||
function sync_authors(index, elem) { sync_elements(index, elem, PORTAL_URL+'/listAuthors'); }
|
||||
function sync_polgroups(index, elem) { sync_elements(index, elem, PORTAL_URL+'/listPolgroups'); }
|
||||
function sync_topics(index, elem) { sync_elements(index, elem, PORTAL_URL+'/listTopics'); }
|
||||
|
||||
if(typeof(String.prototype.trim) === "undefined") {
|
||||
String.prototype.trim = function()
|
||||
|
@ -183,11 +190,11 @@ if(typeof(String.prototype.trim) === "undefined") {
|
|||
|
||||
(function($) {
|
||||
$().ready(function() {
|
||||
$('.author-autocomplete').each(sync_authors).autocomplete('./listAuthors', {
|
||||
$('.author-autocomplete').each(sync_authors).autocomplete(PORTAL_URL+'/listAuthors', {
|
||||
}).result(autocomplete_ready);
|
||||
$('.polgroup-autocomplete').each(sync_polgroups).autocomplete('./listPolgroups', {
|
||||
$('.polgroup-autocomplete').each(sync_polgroups).autocomplete(PORTAL_URL+'/listPolgroups', {
|
||||
}).result(autocomplete_ready);
|
||||
$('.topic-autocomplete').each(sync_topics).autocomplete('./listTopics', {
|
||||
$('.topic-autocomplete').each(sync_topics).autocomplete(PORTAL_URL+'/listTopics', {
|
||||
}).result(autocomplete_ready);
|
||||
});
|
||||
})(jQuery);
|
||||
|
|
|
@ -1,11 +1,9 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
<body>
|
||||
<form method="post" action="./#resultsbox">
|
||||
<metal:use use-macro="context/@@ploneform-macros/fields" />
|
||||
<metal:use use-macro="context/@@ploneform-macros/actions" />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
|
|
@ -1,9 +1,8 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
<body>
|
||||
<form method="post" action="./#resultsbox">
|
||||
<metal:use use-macro="context/@@ploneform-macros/fields" />
|
||||
<metal:use use-macro="context/@@ploneform-macros/actions" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
<body>
|
||||
<form method="post" action="./#resultsbox">
|
||||
<metal:use use-macro="context/@@ploneform-macros/fields" />
|
||||
<metal:use use-macro="context/@@ploneform-macros/actions" />
|
||||
</form>
|
||||
|
||||
</html>
|
||||
</body>
|
||||
</html >
|
||||
|
|
|
@ -1,10 +1,8 @@
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml"
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
xmlns:tal="http://xml.zope.org/namespaces/tal">
|
||||
<body>
|
||||
<form method="post" action="./#resultsbox">
|
||||
<metal:use use-macro="context/@@ploneform-macros/fields" />
|
||||
<metal:use use-macro="context/@@ploneform-macros/actions" />
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
Reference in New Issue