Changeset 2025 for WAeUP_SRP


Ignore:
Timestamp:
17 Jul 2007, 09:30:28 (17 years ago)
Author:
joachim
Message:

ajax now works with ie

Location:
WAeUP_SRP/trunk/skins/waeup_default
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_default/cpsdocument.js.dtml

    r2017 r2025  
    8787            var button_node = $(button);
    8888            if (button_node) {
    89                 button_node.type = 'button';
    9089                button_node.onclick = this.sendForm.bindAsEventListener(this);
    9190                count += 1;
     
    9998            var button_node = $(button);
    10099            if (button_node) {
    101                 button_node.type = 'button';
    102100                button_node.onclick = this.sendFormReload.bindAsEventListener(this);
    103101                count += 1;
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_buttons.pt

    r867 r2025  
    1515         id="cpsdocument_create_button"
    1616         tal:condition="creation" />
     17  <tal:block define="
     18  use_ajax use_ajax|python:True;
     19  content_changed python:cpsmcat('psm_content_changed');
     20  content_error python:cpsmcat('psm_content_error');
     21  working python:cpsmcat('psm_ajax_working')"
     22  condition="python:use_ajax">
     23    <script type="text/javascript"
     24            tal:content="string:
     25            // unobtrusive form controller, that leaves the form accessible
     26            var editor = new CPSDocumentEditor(
     27            'editForm',
     28            $$('editForm').action,
     29            'editForm',
     30            new Array('cpsdocument_edit_button'),
     31            new Array('cpsdocument_edit_and_view_button'),
     32            'page_title',
     33            {content_changed: '${content_changed}',
     34            working: '${working}',
     35            content_error: '${content_error}'},
     36            null,
     37            new Array('addwidget_button'));"
     38            >
     39    </script>
     40  </tal:block>
    1741</metal:block>
  • WAeUP_SRP/trunk/skins/waeup_default/waeup_edit_form.pt

    r2023 r2025  
    1717              tal:attributes="href string:${base_url}document.css" />
    1818        <metal:block define-macro="widgets_javascript">
    19           <span tal:condition="python:0">
     19          <span tal:condition="python:1">
    2020            <script type="text/javascript" src="prototype.js"
    2121                    tal:attributes="src string:${base_url}prototype.js"></script>
Note: See TracChangeset for help on using the changeset viewer.