Ignore:
Timestamp:
11/24/12 18:13:18 (12 years ago)
Author:
hendrikvanantwerpen
Message:

Small issues for db name, widgets, startup.

Don't start application when database is not configured correctly.
Refactored edit widgets to use DefaultEdit?.
Fixed bug in getItems of Lists.
Renamed database to 'qed'.

File:
1 edited

Legend:

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

    r410 r414  
    9191            });
    9292        },function(){
    93             console.log("Checking database 'rft'");
    94             return req('get','rft')
    95             .then(function(){
    96                 console.log("Database 'rft' found.");
    97             },function(){
    98                 console.log("Creating database 'rft'");
    99                 return req('put','/rft');
     93            console.log("Checking database 'qed'");
     94            return req('get','qed')
     95            .then(function(res){
     96                if (res.error) {
     97                    console.log("Creating database 'qed'");
     98                    return req('put','/qed');
     99                } else {
     100                    console.log("Database 'qed' found.");
     101                }
     102            },function(res){
     103                console.log("Creating database 'qed'");
     104                return req('put','/qed');
    100105            });
    101106        },function(){
Note: See TracChangeset for help on using the changeset viewer.