Changeset 847


Ignore:
Timestamp:
11 Nov 2006, 21:59:08 (18 years ago)
Author:
Henrik Bettermann
Message:

cpsdocument_edit_form completely without javascript to avoid error messages in IE

Location:
WAeUP_SRP/trunk/skins
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • WAeUP_SRP/trunk/skins/waeup_custom/cpsdocument_edit_form.pt

    r844 r847  
    1414<metal:block define-macro="edit_form">
    1515<metal:block use-macro="here/content_lib_master/macros/master">
    16   <metal:block fill-slot="style_slot">
    17     <link rel="Stylesheet" type="text/css" href=""
    18       tal:attributes="href string:${base_url}document.css" />
    19 
    20     <metal:block define-macro="widgets_javascript">
    21     <!-- XXX this has to move to CPSSchemas -->
    22     <style type="text/css"
    23       tal:content="string:@import url(${base_url}calendar-win2k-1.css);"></style>
    24     <script type="text/javascript" src="calendar.js"
    25       tal:attributes="src string:${base_url}calendar.js"></script>
    26     <script type="text/javascript" src="lang/calendar-en.js"
    27       tal:define="local cpsmcat/getSelectedLanguage"
    28       tal:attributes="src string:${base_url}lang/calendar-${local}.js"></script>
    29     <script type="text/javascript" src="calendar-setup.js"
    30       tal:attributes="src string:${base_url}calendar-setup.js"></script>
    31     <script type="text/javascript" src="prototype.js"
    32       tal:attributes="src string:${base_url}prototype.js"></script>
    33     <script type="text/javascript" src="effects.js"
    34       tal:attributes="src string:${base_url}effects.js"></script>
    35     <script type="text/javascript" src="controls.js"
    36       tal:attributes="src string:${base_url}controls.js"></script>
    37     <script type="text/javascript" src="cpsdocument.js"
    38       tal:attributes="src string:${base_url}cpsdocument.js"></script>
    39     <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.FCKeditor')">
    40       <script type="text/javascript">
    41         var popup_editor_form = 'popup_fckeditor_form';
    42         var width = 640;
    43         var height = 520;
    44       </script>
    45     </tal:block>
    46     <tal:block condition="python:modules['Products.CPSUtil.integration'].isProductPresent('Products.Epoz')">
    47       <script type="text/javascript">
    48         var popup_editor_form = 'popup_rte_form';
    49         var width = 640;
    50         var height = 480;
    51       </script>
    52     </tal:block>
    53     <script type="text/javascript">
    54      function popup_rte(input_id, label_edit) {
    55        var args, value;
    56        value = document.getElementById(input_id).value;
    57        args = '?input_id='+input_id+'&amp;label_edit='+escape(label_edit);
    58        str_window_features = 'toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=1,dependent=1,width=' + width + ',height=' + height;
    59        popup = window.open(popup_editor_form + args, input_id, str_window_features);
    60        if (!popup.opener) {
    61          popup.opener = window;
    62        }
    63        return false;
    64      }
    65    </script>
    66    </metal:block>
    67   </metal:block>
    6816
    6917 
     
    14492      </div>
    14593    </form>
    146     <div id="ajax_psm" style="display:none">
    147       ajax feedback
    148     </div>
    14994  </metal:block>
    15095
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit.py

    r845 r847  
    5555    else:
    5656        args = getFormUidUrlArg(REQUEST)
    57         psm = "Please correct Your errors."
     57        psm = "Please correct your errors."
    5858        args['portal_status_message'] = psm
    5959if args:
  • WAeUP_SRP/trunk/skins/waeup_student/clearance_edit_manager.py

    r845 r847  
    5555    else:
    5656        args = getFormUidUrlArg(REQUEST)
    57         psm = "Please correct Your errors."
     57        psm = "Please correct your errors."
    5858        args['portal_status_message'] = psm
    5959if args:
Note: See TracChangeset for help on using the changeset viewer.