Changeset 980


Ignore:
Timestamp:
11/26/08 19:12:43 (3 years ago)
Author:
ArthurClemens
Message:

Item116: rebrand javascript classes

Location:
trunk
Files:
12 edited
1 moved

Legend:

Unmodified
Added
Removed
  • trunk/AutoCompleteAddOn/data/TWiki/AutoCompleteAddOn.txt

    r878 r980  
    105105<script type="text/javascript"> 
    106106//<![CDATA[ 
    107         twiki.Event.addLoadEvent(initForm, true); 
     107        foswiki.Event.addLoadEvent(initForm, true); 
    108108        function initForm() { 
    109109                document.loginform[0].focus(); 
     
    247247<script type="text/javascript"> 
    248248// <![CDATA[ 
    249 twiki.Event.addLoadEvent(initAutoComplete, true); 
     249foswiki.Event.addLoadEvent(initAutoComplete, true); 
    250250function initAutoComplete() { 
    251251        var topics = [%INCLUDE{"%datatopic%" section="%datasection%"}%]; 
  • trunk/DpSyntaxHighlighterPlugin/lib/TWiki/Plugins/DpSyntaxHighlighterPlugin.pm

    r781 r980  
    138138} else if (typeof twiki != "undefined"){ 
    139139  // TWiki 4.2 
    140   twiki.Event.addLoadEvent(dp.SyntaxHighlighter.twikirender); 
     140  foswiki.Event.addLoadEvent(dp.SyntaxHighlighter.twikirender); 
    141141} else if (typeof addLoadEvent != "undefined") { 
    142142  // TWiki 4.1 
  • trunk/EditTablePlugin/pub/System/EditTablePlugin/edittable.js

    r927 r980  
    865865 
    866866/** 
    867 Copied from twikiEvent.js. 
     867Copied from foswikiEvent.js. 
    868868*/ 
    869869function addLoadEvent(inFunction, inDoPrepend) { 
  • trunk/PatternSkin/pub/System/PatternSkin/pattern.js

    r927 r980  
    8282        }, 
    8383        'body.patternEditPage' : function(el) { 
    84                 twiki.Event.addLoadEvent(initForm, false); // call after Behaviour 
     84                foswiki.Event.addLoadEvent(initForm, false); // call after Behaviour 
    8585        }, 
    8686        '.twikiSearchResultCount' : function(el) { 
  • trunk/PatternSkin/pub/System/PatternSkin/pattern_edit.js

    r979 r980  
    105105} 
    106106 
    107 twiki.Event.addLoadEvent(patternInitTextArea, false); 
     107foswiki.Event.addLoadEvent(patternInitTextArea, false); 
  • trunk/PatternSkin/templates/edit.pattern.tmpl

    r894 r980  
    1010<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/PatternSkin/pattern_edit.js"></script> 
    1111<script> 
    12 twiki.Event.addLoadEvent(initForm); 
     12foswiki.Event.addLoadEvent(initForm); 
    1313</script>%TMPL:END% 
    1414 
  • trunk/PatternSkin/templates/foswiki.pattern.tmpl

    r979 r980  
    4444<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/foswikilib.js"></script> 
    4545<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/twikiWindow.js"></script> 
    46 <script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/twikiEvent.js"></script> 
     46<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/foswikiEvent.js"></script> 
    4747<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/twikiHTML.js"></script> 
    4848<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/JavascriptFiles/foswikiCSS.js"></script> 
  • trunk/PatternSkin/templates/settings.pattern.tmpl

    r894 r980  
    55<script type="text/javascript" src="%PUBURLPATH%/%SYSTEMWEB%/PatternSkin/pattern_edit.js"></script> 
    66<script> 
    7 twiki.Event.addLoadEvent(initForm); 
     7foswiki.Event.addLoadEvent(initForm); 
    88</script>%TMPL:END% 
    99 
  • trunk/PersonalInfoAddOn/data/TWiki/PersonalInfoAddOn.txt

    r878 r980  
    106106%META:FILEATTACHMENT{name="facebook.png" attr="" autoattached="1" comment="" date="1181684152" path="facebook.png" size="195158" user="UnknownUser" version=""}% 
    107107%META:FILEATTACHMENT{name="userpage.png" attr="" autoattached="1" comment="" date="1181684046" path="userpage.png" size="59462" user="UnknownUser" version=""}% 
    108 %META:FILEATTACHMENT{name="twikiEvent.js" attr="" autoattached="1" comment="" date="1181684152" path="twikiEvent.js" size="195158" user="UnknownUser" version="" comment="Javascript compatibility file for TWiki 4.1"}% 
     108%META:FILEATTACHMENT{name="foswikiEvent.js" attr="" autoattached="1" comment="" date="1181684152" path="foswikiEvent.js" size="195158" user="UnknownUser" version="" comment="Javascript compatibility file for TWiki 4.1"}% 
    109109%META:FILEATTACHMENT{name="userpage_select_picture.png" attr="" autoattached="1" comment="" date="1181684268" path="userpage_select_picture.png" size="104724" user="UnknownUser" version=""}% 
    110110%META:FILEATTACHMENT{name="phonelist.png" attr="" autoattached="1" comment="" date="1181684188" path="phonelist.png" size="15764" user="UnknownUser" version=""}% 
  • trunk/PersonalInfoAddOn/lib/TWiki/Contrib/PersonalInfoAddOn/MANIFEST

    r251 r980  
    1 data/_PersonalInfoAddOn04x02/PersonalInfoPictureViewTemplate.txt 0660 
    2 data/_PersonalInfoAddOn04x02/PersonalInfoPictureDeleteViewTemplate.txt 0660 
    3 data/_PersonalInfoAddOn04x02/PersonalInfoPictureUploadViewTemplate.txt 0660 
    4 data/_PersonalInfoAddOn04x02/PersonalInfoModules.txt 0660 
    5 data/_PersonalInfoAddOn04x02/PersonalInfoUserViewTemplate.txt 0660 
    6 data/_PersonalInfoAddOn04x02/PersonalInfoFaceBook.txt 0660 
    7 data/_PersonalInfoAddOn04x02/PersonalInfoLayoutModules.txt 0660 
    8 data/_PersonalInfoAddOn04x02/PersonalInfo.txt 0660 
    9 data/_PersonalInfoAddOn04x02/PersonalInfoHome.txt 0660 
     1data/_PersonalInfoAddOnFiles/PersonalInfoPictureViewTemplate.txt 0660 
     2data/_PersonalInfoAddOnFiles/PersonalInfoPictureDeleteViewTemplate.txt 0660 
     3data/_PersonalInfoAddOnFiles/PersonalInfoPictureUploadViewTemplate.txt 0660 
     4data/_PersonalInfoAddOnFiles/PersonalInfoModules.txt 0660 
     5data/_PersonalInfoAddOnFiles/PersonalInfoUserViewTemplate.txt 0660 
     6data/_PersonalInfoAddOnFiles/PersonalInfoFaceBook.txt 0660 
     7data/_PersonalInfoAddOnFiles/PersonalInfoLayoutModules.txt 0660 
     8data/_PersonalInfoAddOnFiles/PersonalInfo.txt 0660 
     9data/_PersonalInfoAddOnFiles/PersonalInfoHome.txt 0660 
    1010data/_PersonalInfoAddOn04x01/PersonalInfoPictureViewTemplate.txt 0660 
    1111data/_PersonalInfoAddOn04x01/PersonalInfoPictureDeleteViewTemplate.txt 0660 
     
    1818data/_PersonalInfoAddOn04x01/PersonalInfoHome.txt 0660 
    1919data/Main/PersonalInfoDemoUser.txt 0660 
    20 data/TWiki/PersonalInfoAddOn.txt 0660 
     20data/System/PersonalInfoAddOn.txt 0660 
    2121pub/Main/PersonalInfoDemoUser/tiger.jpg 0664 
    22 pub/TWiki/PersonalInfoAddOn/facebook.png 0664 
    23 pub/TWiki/PersonalInfoAddOn/phonelist.png 0664 
    24 pub/TWiki/PersonalInfoAddOn/silhouette.gif 0664 
    25 pub/TWiki/PersonalInfoAddOn/userpage_edit.png 0664 
    26 pub/TWiki/PersonalInfoAddOn/userpage_select_picture.png 0664 
    27 pub/TWiki/PersonalInfoAddOn/userpage.png 0664 
    28 pub/TWiki/PersonalInfoAddOn/template_diagram.png 0664 
     22pub/System/PersonalInfoAddOn/facebook.png 0664 
     23pub/System/PersonalInfoAddOn/phonelist.png 0664 
     24pub/System/PersonalInfoAddOn/silhouette.gif 0664 
     25pub/System/PersonalInfoAddOn/userpage_edit.png 0664 
     26pub/System/PersonalInfoAddOn/userpage_select_picture.png 0664 
     27pub/System/PersonalInfoAddOn/userpage.png 0664 
     28pub/System/PersonalInfoAddOn/template_diagram.png 0664 
  • trunk/core/data/TestCases/TestCaseTWikiJavascripts.txt

    r979 r980  
    600600</script> 
    601601 
    602 ---++ twiki.Event 
    603 <script language="javascript" src="%PUBURL%/%SYSTEMWEB%/JavascriptFiles/twikiEvent.js"></script> 
    604  
    605 ---+++ twiki.Event.addLoadEvent 
     602---++ foswiki.Event 
     603<script language="javascript" src="%PUBURL%/%SYSTEMWEB%/JavascriptFiles/foswikiEvent.js"></script> 
     604 
     605---+++ foswiki.Event.addLoadEvent 
    606606 
    607607<div id="testAddLoadEventContainer">Here goes...</div> 
     
    609609<script language="javascript"> 
    610610/*<![CDATA[*/ 
    611 twiki.Event.addLoadEvent( 
     611foswiki.Event.addLoadEvent( 
    612612        function() { 
    613613                document.body.style.backgroundColor = '#ffc'; 
    614614        }); 
    615615 
    616 twiki.Event.addLoadEvent( 
     616foswiki.Event.addLoadEvent( 
    617617        function() { 
    618618                document.getElementById("testAddLoadEventContainer").appendChild(document.createTextNode(' monkeys!')); 
    619619        }); 
    620620 
    621 twiki.Event.addLoadEvent( 
     621foswiki.Event.addLoadEvent( 
    622622        function() { 
    623623                document.getElementById("testAddLoadEventContainer").appendChild(document.createTextNode('Hungry')); 
     
    625625        true); 
    626626 
    627 twiki.Event.addLoadEvent("createTextNode"); 
     627foswiki.Event.addLoadEvent("createTextNode"); 
    628628         
    629629    function testAddLoadEventWithValidArgs() { 
  • trunk/core/pub/System/JavascriptFiles/foswiki.js

    r979 r980  
    77foswikiArray.js 
    88foswikiCSS.js 
    9 twikiEvent.js 
     9foswikiEvent.js 
    1010twikiForm.js 
    1111twikiFunction.js 
  • trunk/core/pub/System/JavascriptFiles/foswikiEvent.js

    r14 r980  
    1 if (twiki == undefined) var twiki = {}; 
    2 twiki.Event = { 
     1if (foswiki == undefined) var foswiki = {}; 
     2foswiki.Event = { 
    33 
    44        /** 
    55        Chain a new load handler onto the existing handler chain 
    66        Original code: http://simon.incutio.com/archive/2004/05/26/addLoadEvent 
    7         Modified for TWiki 
     7        Modified for Foswiki 
    88        @param inFunction : (Function) function to add 
    99        @param inDoPrepend : (Boolean) if true: adds the function to the head of the handler list; otherwise it will be added to the end (executed last) 
Note: See TracChangeset for help on using the changeset viewer.