Changeset 676
- Timestamp:
- 02/25/10 16:43:02 (7 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/com/calenco/staticres/workspace-html.ftl
r674 r676 849 849 dojo.xhrGet({ 850 850 url: "/system/addons/" + _newtype + "/previewxsl", 851 // preventCache: true,852 851 handleAs: "xml", 853 852 load: _loadfn, … … 857 856 858 857 function show() { 859 console.log("Entered show() _canXSL? " + _canXsl + " ...");860 858 var _loadfn = function(response, ioArgs) { 861 console.log("Load called. Response: " + response + " ioArgs: " + ioArgs);862 859 var _content; 863 860 if (_canXsl) { 864 861 addCSS("/system/addons/" + _xmltype + "/previewcss", _xmltype + "_css"); 865 862 _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("/")); 868 864 _processor.setParameter(null, "base.path", _base); 869 865 _content = _processor.transformToFragment(response, document); … … 881 877 }; 882 878 var _errfn = function(response, ioArgs) { 883 console.log("Error called...");884 879 console.log("FAILED xhrGet. Cannot retrieve file to preview. ", response, ioArgs); 885 880 return response; 886 881 }; 887 console.log("Performing XHR GET to " + _href + " ...");888 // IE8 cannot display images...889 882 if (_canXsl && endsWith(_href, ".xml")) { 890 883 dojo.xhrGet({ … … 952 945 var req = dstore.fetch({query: {type: "*"}}); 953 946 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"); 956 949 if (href && type != "folder") { 957 950 var fvNode = dojo.byId("fileView");
Note: See TracChangeset
for help on using the changeset viewer.
