Commit 1485e6e1 authored by Frank Bergmann's avatar Frank Bergmann

- Upgrade to OpenACS 5.9.1

parent f1082ad2
......@@ -11,13 +11,13 @@
<version name="0.87d" url="http://openacs.org/repository/download/apm/ajaxhelper-0.87d.apm">
<owner url="mailto:ham@solutiongrove.com">Hamilton Chua</owner>
<summary>Ajax Helper for various javascript libraries.</summary>
<release-date>2016-11-15</release-date>
<description format="text/plain">Provides helper procs to generate javascript used for Ajax and generating cinematic effects. Includes Scriptaculous 1.7.1 beta3 with Prototype 1.5.1, ExtJS 1.1.1 and the Yahoo UI Libraries (2.3.0). As of 0.87d, there is now an option to load YUI js source files direct from yahoo (http://developer.yahoo.com/yui/articles/hosting/). Lee Denison's template::head is now used to load javascript sources and css. The YUI loader is used to intelligently load YUI sources and css. As of 0.7d, all javascript libraries have been moved to ajaxhelper/www/resources to take advantage of caching. As of 0.8d, the wrappers will now be able to check a global variable to see if the required sources are loaded, this allows helper procs to automatically load the javascript sources you need.</description>
<vendor>Solution Grove</vendor>
<maturity>1</maturity>
<provides url="ajaxhelper" version="0.87d"/>
<requires url="acs-kernel" version="5.8.1"/>
<requires url="acs-kernel" version="5.9.1"/>
<requires url="acs-tcl" version="5.9.1"/>
<callbacks>
</callbacks>
......
......@@ -12,7 +12,7 @@ namespace eval ah::dojo { }
ad_proc -private ah::dojo::load_js_sources {
-source_list
} {
Accepts a tcl list of sources to load.
Accepts a Tcl list of sources to load.
This source_list will be the global ajax_helper_dojo_js_sources variable.
This script is called in the blank-master template.
......
......@@ -65,7 +65,7 @@ ad_proc -public ah::ext::ajax {
@creation-date 2007-09-07
@param url The url that the javascript will post to
@param params A tcl list of parameters to pass to the url
@param params A Tcl list of parameters to pass to the url
@param success A javascript function to be executed when the url is successfully accessed
@param failure A javascript function to execute if transaction failed.
......@@ -97,7 +97,7 @@ ad_proc -public ah::ext::msgbox {
@author Hamilton Chua (ham@solutiongrove.com)
@creation-date 2007-09-07
@param options A tcl list of options, see above for more info on how to structure and pass options to this proc.
@param options A Tcl list of options, see above for more info on how to structure and pass options to this proc.
} {
......
......@@ -170,7 +170,7 @@ ad_proc ah::lb::add_add_column_menu {
@param list_name template::list list name
@param allowed_elements List of element names that may appear in add
column dropdown
@parma add_url_var Name of URL variable to use to add the choosen column
@parma add_url_var Name of URL variable to use to add the chosen column
@param -hidden_elements List of hidden elements that should be passed in the
} {
if {$return_url eq ""} {
......
......@@ -12,7 +12,7 @@ namespace eval ah::yui { }
ad_proc -private ah::yui::load_js_sources {
-source_list
} {
Accepts a tcl list of sources to load.
Accepts a Tcl list of sources to load.
This source_list will be the global ajax_helper_yui_js_sources variable.
This script is called in the blank-master template.
As of 0.86d with YUI 2.3.0, this proc now uses the Yahoo Loader Utility to
......@@ -575,7 +575,7 @@ ad_proc -public ah::yui::menu_from_list {
{-options ""}
{-renderin "document.body"}
} {
Generates the javascript to create a YUI menu from a tcl list.
Generates the javascript to create a YUI menu from a Tcl list.
http://developer.yahoo.com/yui/menu/
......@@ -623,7 +623,7 @@ ad_proc -public ah::yui::contextmenu {
{-triggerel "document"}
{-renderin "document.body"}
} {
Generates the javascript to create a YUI context menu from a tcl list.
Generates the javascript to create a YUI context menu from a Tcl list.
http://developer.yahoo.com/yui/menu/
@author Hamilton Chua (ham@solutiongrove.com)
......@@ -673,7 +673,7 @@ ad_proc -public ah::yui::autocomplete {
{-forceselection "false"}
{-events {}}
} {
Generates the javascript to create a YUI autocomplete object from a tcl list
Generates the javascript to create a YUI autocomplete object from a Tcl list
http://developer.yahoo.com/yui/autocomplete/
@author Hamilton Chua (ham@solutiongrove.com)
......
......@@ -93,7 +93,7 @@ ad_proc -public get_server_root {} {
ad_proc adp_parse_ad_conn_file {} {
handle a request for an adp and/or tcl file in the template system.
handle a request for an adp and/or Tcl file in the template system.
} {
namespace eval template variable parse_level ""
#ns_log debug "adp_parse_ad_conn_file => file '[file rootname [ad_conn file]]'"
......@@ -110,15 +110,15 @@ ad_proc adp_parse_ad_conn_file {} {
if { "1" eq [lang::util::translator_mode_p] } {
# Attempt to move all message keys outside of tags
while { [regsub -all {(<[^>]*)(\x002\(\x001[^\x001]*\x001\)\x002)([^>]*>)} $parsed_template {\2\1\3} parsed_template] } {}
while { [regsub -all {(<[^>]*)(\x02\(\x01[^\x01]*\x01\)\x02)([^>]*>)} $parsed_template {\2\1\3} parsed_template] } {}
# Attempt to move all message keys outside of <select>...</select> statements
regsub -all -nocase {(<option\s[^>]*>[^<]*)(\x002\(\x001[^\x001]*\x001\)\x002)([^<]*</option[^>]*>)} $parsed_template {\2\1\3} parsed_template
regsub -all -nocase {(<option\s[^>]*>[^<]*)(\x02\(\x01[^\x01]*\x01\)\x02)([^<]*</option[^>]*>)} $parsed_template {\2\1\3} parsed_template
while { [regsub -all -nocase {(<select[^>]*>[^<]*)(\x002\(\x001[^\x001]*\x001\)\x002)} $parsed_template {\2\1} parsed_template] } {}
while { [regsub -all -nocase {(<select[^>]*>[^<]*)(\x02\(\x01[^\x01]*\x01\)\x02)} $parsed_template {\2\1} parsed_template] } {}
set start 0
while { [regexp -nocase -indices -start $start {(<select[^\x002]*)(\x002\(\x001[^\x001]*\x001\)\x002)} $parsed_template indices select_idx message_idx] } {
while { [regexp -nocase -indices -start $start {(<select[^\x02]*)(\x02\(\x01[^\x01]*\x01\)\x02)} $parsed_template indices select_idx message_idx] } {
set select [string range $parsed_template [lindex $select_idx 0] [lindex $select_idx 1]]
if { [string first "</select" [string tolower $select]] != -1 } {
......@@ -133,7 +133,7 @@ ad_proc adp_parse_ad_conn_file {} {
# TODO: We could also move message keys out of <head>...</head>
while { [regexp -indices {\x002\(\x001([^\x001]*)\x001\)\x002} $parsed_template indices key] } {
while { [regexp -indices {\x02\(\x01([^\x01]*)\x01\)\x02} $parsed_template indices key] } {
set before [string range $parsed_template 0 [lindex $indices 0]-1]
set after [string range $parsed_template [lindex $indices 1]+1 end]
......
......@@ -96,7 +96,7 @@
TODO: remove this and add a more systematic / package independent way
TODO of getting this content here
</comment>
<if @curriculum_bar_p@ true><include src="/packages/curriculum/lib/bar" /></if>
<if @curriculum_bar_p@ true><include src="/packages/curriculum/lib/bar" ></if>
<div id="footer">
<div class="block-marker">Begin footer</div>
......
......@@ -56,7 +56,7 @@ ad_proc -public template::head::add_script {
users client. A script library in an external file may only be included
once; subsequent calls to add_script will replace the existing entry.
Anonymous script blocks will be added without checking for duplicates; the
caller must ensure that anonymous script blocks are not inadvertantly added
caller must ensure that anonymous script blocks are not inadvertently added
multiple times. You <strong>must</strong> supply either src or script.
@param type the type attribute of the script tag, eg. 'text/javascript'
......
This diff is collapsed.
......@@ -13,7 +13,7 @@
v0.87d<br>
<br>
<span style="font-weight: bold;">Components :</span><br>
Prototype v1.5.1 (<a href="http://prototype.conio.net/" target="_blank">http://prototype.conio.net/</a>)<br>
Prototype v1.5.1 (<a href="http://prototypejs.org/" target="_blank">http://prototypejs.org/</a>)<br>
Scriptaculous v1.7.3 Beta (<a href="http://script.aculo.us/" target="_blank">http://script.aculo.us/</a>)<br>
Overlibmws (<a href="http://www.macridesweb.com/oltest/" target="_blank">http://www.macridesweb.com/oltest/</a>)<br>
......@@ -96,9 +96,9 @@ As of 0.87d, all required sources and stylesheets are loaded automatically using
Prototype</span> has a pair of javascript functions that alllow
programmers to use XMLHTTP. The ajax.updater and ajax.request
functions. See <a
href="http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater">http://wiki.script.aculo.us/scriptaculous/show/Ajax.Updater</a>
href="http://api.prototypejs.org/ajax/Ajax/Updater/">http://api.prototypejs.org/ajax/Ajax/Updater/</a>
and <a
href="http://wiki.script.aculo.us/scriptaculous/show/Ajax.Request">http://wiki.script.aculo.us/scriptaculous/show/Ajax.Request</a>
href="http://api.prototypejs.org/ajax/Ajax/Request/">http://api.prototypejs.org/ajax/Ajax/Request/</a>
for more information about these javascript functions.<br>
<br>
The Tcl API is used like this<br>
......@@ -153,7 +153,7 @@ has been updated.<br>
</span>Use ah::effects to generate javascript that allows you to
implement transitional and cinematic effects to html elements. You will
need to consult the scriptaculous documentation
<a href="http://wiki.script.aculo.us/scriptaculous/tags/effects" target="_blank">http://wiki.script.aculo.us/scriptaculous/tags/effects</a> to know what
<a href="http://madrobby.github.io/scriptaculous/core-effects/" target="_blank">http://madrobby.github.io/scriptaculous/core-effects/</a> to know what
kinds of
effects and what kinds of options you can pass to the effect script.<br>
<br>
......@@ -185,7 +185,7 @@ In your tcl file ...
<span style="font-weight: bold;">Drag and Drop Sortables :<br>
<br>
</span>Sortables are documented in the scriptaculous wiki <a
href="http://wiki.script.aculo.us/scriptaculous/show/Sortables">http://wiki.script.aculo.us/scriptaculous/show/Sortables.</a><br>
href="http://madrobby.github.io/scriptaculous/sortable/">http://madrobby.github.io/scriptaculous/sortable/</a>.<br>
For sortables to work you will need to define a container which will
hold the elements you want to be sortable.<br>
<br>
......
ad_page_contract {
Add a filter to saved filter view for a list builder list
} {
return_url
return_url:localurl
list_name
{filter_name ""}
{filter_names ""}
......
......@@ -3,7 +3,7 @@ ad_page_contract {
} {
list_name
view_name
return_url
return_url:localurl
parent_id:naturalnum,notnull
}
......
# demonstrates how to create YUI Menu using a properly formatted tcl list
# demonstrates how to create YUI Menu using a properly formatted Tcl list
# Menu 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment