Changeset 715

Show
Ignore:
Timestamp:
09/15/06 15:17:09 (2 years ago)
Author:
JeremyRuston
Message:

Removed unnecessarily white space (ticket #163)

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Branches/2.1/core/js/Macros.js

    r698 r715  
    2929        if(this[type].handler) 
    3030                results = this[type].handler(params); 
    31         for (var t = 0; t < results.length; t++) 
     31        for(var t = 0; t < results.length; t++) 
    3232                { 
    3333                var theListItem = document.createElement("li") 
     
    138138config.macros.search.onKeyPress = function(e) 
    139139{ 
    140         if (!e) var e = window.event; 
     140        if(!e) var e = window.event; 
    141141        switch(e.keyCode) 
    142142                { 
    143143                case 13: // Ctrl-Enter 
    144144                case 10: // Ctrl-Enter on IE PC 
    145                   config.macros.search.doSearch(this); 
    146                   break; 
     145                        config.macros.search.doSearch(this); 
     146                        break; 
    147147                case 27: // Escape 
    148148                        this.value = ""; 
     
    281281config.macros.slider.onClickSlider = function(e) 
    282282{ 
    283         if (!e) var e = window.event; 
     283        if(!e) var e = window.event; 
    284284        var n = this.nextSibling; 
    285285        var cookie = n.getAttribute("cookie"); 
     
    301301        panel.setAttribute("cookie",cookie); 
    302302        panel.style.display = config.options[cookie] ? "block" : "none"; 
    303         place.appendChild(panel); 
     303        place.appendChild(panel); 
    304304        return panel; 
    305305} 
     
    391391        btn.setAttribute("newTemplate",getParam(params,"template",DEFAULT_EDIT_TEMPLATE)); 
    392392        var text = getParam(params,"text"); 
    393         if (text !== undefined)  
     393        if(text !== undefined)  
    394394                btn.setAttribute("newText",text); 
    395395        return btn; 
     
    404404        story.displayTiddler(null,title,template); 
    405405        var text = this.getAttribute("newText"); 
    406         if (typeof text == "string") 
     406        if(typeof text == "string") 
    407407                story.getTiddlerField(title,"text").value = text.format([title]); 
    408408        for(var t=0;t<params.length;t++) 
     
    497497                config.options[cookie] = params[1]; 
    498498        this.switchTab(tabset,config.options[cookie]); 
    499         place.appendChild(wrapper); 
     499        place.appendChild(wrapper); 
    500500} 
    501501 
     
    621621                { 
    622622                story.setDirty(tiddler.title,true); 
    623                 if (field != "text") 
     623                if(field != "text") 
    624624                        { 
    625625                                var e = createTiddlyElement(null,"input"); 
     
    629629                                e.setAttribute("type","text"); 
    630630                                var v = store.getValue(tiddler,field); 
    631                                 if (!v)  
     631                                if(!v)  
    632632                                        v = ""; 
    633633                                e.value = v; 
    634634                                e.setAttribute("size","40"); 
    635635                                e.setAttribute("autocomplete","off"); 
    636                                 place.appendChild(e); 
     636                                place.appendChild(e); 
    637637                        } 
    638638                else 
     
    644644                                        e.setAttribute("readOnly","readOnly"); 
    645645                                var v = store.getValue(tiddler,field); 
    646                                 if (!v)  
     646                                if(!v)  
    647647                                        v = ""; 
    648648                                e.value = v; 
     
    655655                                e.setAttribute("rows",rows); 
    656656                                e.setAttribute("edit",field); 
    657                                 place.appendChild(wrapper1); 
    658                         }  
     657                                place.appendChild(wrapper1); 
     658                        } 
    659659                } 
    660660} 
     
    662662config.macros.tagChooser.onClick = function(e) 
    663663{ 
    664         if (!e) var e = window.event; 
     664        if(!e) var e = window.event; 
    665665        var lingo = config.views.editor.tagChooser; 
    666666        var popup = Popup.create(this); 
     
    668668        if(tags.length == 0) 
    669669                createTiddlyText(createTiddlyElement(popup,"li"),lingo.popupNone); 
    670         for (var t=0; t<tags.length; t++) 
     670        for(var t=0; t<tags.length; t++) 
    671671                { 
    672672                var theTag = createTiddlyButton(createTiddlyElement(popup,"li"),tags[t][0],lingo.tagTooltip.format([tags[t][0]]),config.macros.tagChooser.onTagClick); 
     
    676676        Popup.show(popup,false); 
    677677        e.cancelBubble = true; 
    678         if (e.stopPropagation) e.stopPropagation(); 
     678        if(e.stopPropagation) e.stopPropagation(); 
    679679        return(false); 
    680680} 
     
    682682config.macros.tagChooser.onTagClick = function(e) 
    683683{ 
    684         if (!e) var e = window.event; 
     684        if(!e) var e = window.event; 
    685685        var tag = this.getAttribute("tag"); 
    686686        var title = this.getAttribute("tiddler"); 
     
    733733                        if(theClass) 
    734734                                addClass(btn,theClass); 
    735                         place.appendChild(btn); 
     735                        place.appendChild(btn); 
    736736                        } 
    737737                } 
     
    740740config.macros.toolbar.onClickCommand = function(e) 
    741741{ 
    742         if (!e) var e = window.event; 
     742        if(!e) var e = window.event; 
    743743        var command = config.commands[this.getAttribute("commandName")]; 
    744744        return command.handler(e,this,this.getAttribute("tiddler")); 
     
    749749{ 
    750750        var children = place.getElementsByTagName("a") 
    751         for (var t=0; t<children.length; t++) 
     751        for(var t=0; t<children.length; t++) 
    752752                { 
    753753                var c = children[t]; 
     
    967967        // Create the iframe 
    968968        var iframe = document.createElement("iframe"); 
    969         iframe.style.display = "none"; 
     969        iframe.style.display = "none"; 
    970970        importer.insertBefore(iframe,importer.firstChild); 
    971971        var doc = iframe.document; 
    972         if (iframe.contentDocument) 
     972        if(iframe.contentDocument) 
    973973                doc = iframe.contentDocument; // For NS6 
    974         else if (iframe.contentWindow) 
     974        else if(iframe.contentWindow) 
    975975                doc = iframe.contentWindow.document; // For IE5.5 and IE6 
    976976        // Put the content in the iframe