TiddlyWiki.org

Ticket #476: Ticket476.patch

File Ticket476.patch, 0.9 kB (added by SaqImtiaz, 6 months ago)

patch updated to provide optional label for server types

  • FileAdaptor.js

    old new  
    1111 
    1212FileAdaptor.serverType = 'file'; 
    1313 
     14FileAdaptor.serverLabel = 'TiddlyWiki file'; 
     15 
    1416FileAdaptor.prototype.setContext = function(context,userParams,callback) 
    1517{ 
    1618        if(!context) context = {}; 
  • Import.js

    old new  
    2626        wizard.addStep(this.step1Title,this.step1Html); 
    2727        var s = wizard.getElement("selTypes"); 
    2828        for(var t in config.adaptors) { 
    29                 var e = createTiddlyElement(s,"option",null,null,t); 
     29                var e = createTiddlyElement(s,"option",null,null,config.adaptors[t].serverLabel ? config.adaptors[t].serverLabel : t); 
    3030                e.value = t; 
    3131        } 
    3232        s = wizard.getElement("selFeeds");