Ignore:
Timestamp:
07/16/12 16:27:40 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Selector can be clicked on whole line now.
Question editor in survey page does lazy loading per
category and displays total number of questions.

Location:
Dev/branches/rest-dojo-ui/client/config
Files:
1 added
1 edited

Legend:

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

    r361 r362  
    2020    parser.parse();
    2121
    22     query("#log").forEach(function(n){ logNode = n; });
     22    query("#log").forEach(function(n){logNode = n;});
    2323    usernameInput = registry.byId('username');
    2424    passwordInput = registry.byId('password');
     
    3131
    3232    log("Give CouchDB admin username & password and click 'Configure' to start.\nIf the database already exists, rft_admin password will suffice.",true);
    33 
    3433   
    3534    function configure(){
     35        var docs;
     36
    3637        log("Configuring CouchDB for RFT:",true);
    3738
     
    4041        var reset = resetInput.get('value');
    4142
    42         var docs = json.fromJson(docsJson);
     43        log("Downloading most recent configuration.");
     44        xhr('GET',{
     45            url: 'docs.json',
     46            handleAs: 'json',
     47            sync: true
     48        },true)
     49        .then(function(result){
     50            docs = result;
     51        });
    4352
    4453        function req(method,url,body) {
     
    4756                contentType: 'application/json',
    4857                handleAs: 'json',
    49                 sync: true,
    50                 error: function(err) {
    51                     log("ERROR: "+err);
    52                 }
     58                sync: true
    5359            };
    5460            if ( !body || lang.isObject(body) ) {
Note: See TracChangeset for help on using the changeset viewer.