Changeset 1074

Show
Ignore:
Timestamp:
03/04/08 02:45:11
Author:
piv
Message:

js fixes for IE5.5

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • qPloneTabs/trunk/HISTORY.txt

    r1072 r1074  
    22 
    33  * now global_sections tabs updated asynchronous during changes on qPloneTabs ajax configlet 
     4 
     5  * fixed templates used as response to ajax requests: added omitted http header 'content-type' 
     6 
     7  * added compatibility with IE7 
    48 
    590.3.1 
  • qPloneTabs/trunk/README.txt

    r1072 r1074  
    44  from portal_control_panel form. 
    55 
    6   (c) "Quintagroup":http://quintagroup.com/ , 2006.  
     6  (c) "Quintagroup":http://quintagroup.com/ , 2006 - 2008. 
    77 
    88  support@quintagroup.com * quintessence of modern business 
    99 
    10 Compatible with 
     10Tested on: 
    1111 
    1212  * Firefox 
    1313 
    14   * IE 5.5 - 6.0 
     14  * IE 5.5 - 7 
    1515 
    1616Authors 
     
    1919 
    2020  * Vitaliy Podoba 
     21 
     22  * Volodymyr Rudnytskyy 
  • qPloneTabs/trunk/TODO.txt

    r778 r1074  
    11  * Opera compatibility 
    2   * 'portal-globalnav' visualization without page reloading 
     2 
     3DONE  * 'portal-globalnav' visualization without page reloading 
     4 
    35  * using kukit framework 
     6 
     7  * plone 3 compatibility 
  • qPloneTabs/trunk/skins/qPloneTabs/javascripts/qplonetabs.js

    r1072 r1074  
    411411    new Ajax.Updater({success : 'portal-globalnav'}, 'qpt_globalsections', { 
    412412            method : 'post', 
    413             onSuccess : function(){ 
    414               new Effect.Highlight('portal-globalnav', {}); 
    415             } 
     413            insertion : Insertion.Instead 
    416414    }); 
    417415} 
    418416 
     417// Insertion object defined in prototype javascript library 
     418Insertion.Instead = Class.create(); 
     419Insertion.Instead.prototype = Object.extend(new Abstract.Insertion('beforeEnd'), { 
     420  initialize: function(element, content) { 
     421    this.element = $(element); 
     422    this.content = content.stripScripts(); 
     423 
     424    var ul = document.createElement("UL"); 
     425    ul.id = "portal-globalnav"; 
     426    ul.innerHTML = this.content; 
     427 
     428    var parent = this.element.parentNode; 
     429    parent.removeChild(this.element); 
     430    parent.appendChild(ul); 
     431 
     432    setTimeout(function() {content.evalScripts()}, 10); 
     433  } 
     434 
     435}); 
    419436 
    420437//********************************************** 
  • qPloneTabs/trunk/skins/qPloneTabs/qpt_globalsections.pt

    r1073 r1074  
    1616     tal:condition="portal_tabs"> 
    1717 
    18     <tal:tabs tal:repeat="tab portal_tabs"> 
    19         <li tal:attributes="id string:portaltab-${tab/id}; 
    20                             class python:test(selected_portal_tab==tab['id'], 'selected', 'plain');"> 
    21             <a href="" 
    22                tal:content="tab/name" 
    23                tal:attributes="href tab/url; 
    24                                title tab/description|nothing"> 
    25                 Tab Name 
    26             </a> 
    27         </li> 
    28     </tal:tabs> 
     18        <tal:tabs tal:repeat="tab portal_tabs"> 
     19            <li tal:attributes="id string:portaltab-${tab/id}; 
     20                                class python:test(selected_portal_tab==tab['id'], 'selected', 'plain');"> 
     21                <a href="" 
     22                   tal:content="tab/name" 
     23                   tal:attributes="href tab/url; 
     24                                   title tab/description|nothing"> 
     25                    Tab Name 
     26                </a> 
     27            </li> 
     28        </tal:tabs> 
    2929 
    3030</div>