Ignore:
Timestamp:
09/05/12 15:50:38 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Added config/ to build. It looks like top-level JS files (like config/db.js and rft/run.js) don't use the cache correctly in a build.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/branches/rest-dojo-ui/client/config/db.js

    r362 r408  
    66         'dojo/query',
    77         'dijit/registry',
    8          'dojo/text!./docs.json',
    9          'dojo/domReady!',
    10          'dijit/form/TextBox',
    11          'dijit/form/Button',
    12          'dijit/form/CheckBox',
    13          ],
    14     function(json,lang,xhr,parser,query,registry,docsJson){
     8         'dojo/domReady!'
     9],function(json,lang,xhr,parser,query,registry){
    1510    var logNode;
    1611    var usernameInput, passwordInput, resetInput, configButton;
     
    1813    var dbUrl = "../data/";
    1914
    20     parser.parse();
     15    parser.parse()
     16    .then(function(){
     17        query("#log").forEach(function(n){logNode = n;});
     18        usernameInput = registry.byId('username');
     19        passwordInput = registry.byId('password');
     20        resetInput = registry.byId('reset');
     21        configButton = registry.byId('configure');
    2122
    22     query("#log").forEach(function(n){logNode = n;});
    23     usernameInput = registry.byId('username');
    24     passwordInput = registry.byId('password');
    25     resetInput = registry.byId('reset');
    26     configButton = registry.byId('configure');
     23        usernameInput.set('value',defaultUsername);
     24        passwordInput.set('value',defaultPassword);
     25        configButton.on('click',configure);
    2726
    28     usernameInput.set('value',defaultUsername);
    29     passwordInput.set('value',defaultPassword);
    30     configButton.on('click',configure);
     27        log("Give CouchDB admin username & password and click 'Configure' to start.\nIf the database already exists, rft_admin password will suffice.",true);
     28    });
    3129
    32     log("Give CouchDB admin username & password and click 'Configure' to start.\nIf the database already exists, rft_admin password will suffice.",true);
    33    
    3430    function configure(){
    3531        var docs;
Note: See TracChangeset for help on using the changeset viewer.