Changeset 676


Ignore:
Timestamp:
02/25/10 16:43:02 (7 months ago)
Author:
fabman
Message:

IE UI fixes, WIP

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/com/calenco/staticres/workspace-html.ftl

    r674 r676  
    849849                    dojo.xhrGet({ 
    850850                        url: "/system/addons/" + _newtype + "/previewxsl", 
    851 //                        preventCache: true, 
    852851                        handleAs: "xml", 
    853852                        load: _loadfn, 
     
    857856 
    858857                function show() { 
    859                     console.log("Entered show() _canXSL? " + _canXsl + " ..."); 
    860858                    var _loadfn = function(response, ioArgs) { 
    861                         console.log("Load called. Response: " + response + " ioArgs: " + ioArgs); 
    862859                        var _content; 
    863860                        if (_canXsl) { 
    864861                            addCSS("/system/addons/" + _xmltype + "/previewcss", _xmltype + "_css"); 
    865862                            _processor.clearParameters(); //not needed? 
    866                             var _shref = _href[0]; 
    867                             var _base = _shref.substr(0, _shref.lastIndexOf("/")); 
     863                            var _base = _href.substr(0, _href.lastIndexOf("/")); 
    868864                            _processor.setParameter(null, "base.path", _base); 
    869865                            _content = _processor.transformToFragment(response, document); 
     
    881877                    }; 
    882878                    var _errfn = function(response, ioArgs) { 
    883                         console.log("Error called..."); 
    884879                        console.log("FAILED xhrGet. Cannot retrieve file to preview. ", response, ioArgs); 
    885880                        return response; 
    886881                    }; 
    887                     console.log("Performing XHR GET to " + _href + " ..."); 
    888                     // IE8 cannot display images... 
    889882                    if (_canXsl && endsWith(_href, ".xml")) { 
    890883                        dojo.xhrGet({ 
     
    952945                var req = dstore.fetch({query: {type: "*"}}); 
    953946                dojo.connect(ftree, "onClick", function(item, node) { 
    954                     var href = item.path; 
    955                     var type = new String(item.type); 
     947                    var href = dstore.getValue(item, "path"); 
     948                    var type = dstore.getValue(item, "type"); 
    956949                    if (href && type != "folder") { 
    957950                        var fvNode = dojo.byId("fileView"); 
Note: See TracChangeset for help on using the changeset viewer.