Changeset 352


Ignore:
Timestamp:
07/05/12 12:41:25 (13 years ago)
Author:
hendrikvanantwerpen
Message:

Allow CouchDB to be configured through redirect as well.

Location:
Dev/branches/rest-dojo-ui/client
Files:
4 edited

Legend:

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

    r343 r352  
    2727    }
    2828
    29     var urlInput = registry.byId('url');
    3029    var usernameInput = registry.byId('username');
    3130    var passwordInput = registry.byId('password');
    3231    var resetInput = registry.byId('reset');
    3332
    34     urlInput.set('value','http://localhost/couchdb');
    3533    usernameInput.set('value','rft_admin');
    3634    passwordInput.set('value','Welkom01');
     
    4139        log("Configuring CouchDB for RFT:",true);
    4240
    43         var baseUrl = urlInput.get('value');
     41        var baseUrl = '../data';
    4442        var username = usernameInput.get('value');
    4543        var password = passwordInput.get('value');
  • Dev/branches/rest-dojo-ui/client/config/index.html

    r351 r352  
    1717        <h1>Configure CouchDB</h1>
    1818        <div>
    19             <label for="url">CouchDB URL</label><input type="text" id="url" value="http://localhost:5984/" data-dojo-type="dijit.form.TextBox"/><br/>
    2019            <label for="username">Admin username</label><input type="text" id="username" data-dojo-type="dijit.form.TextBox"/><br/>
    2120            <label for="password">Admin password</label><input type="password" id="password" data-dojo-type="dijit.form.TextBox"/><br/>
  • Dev/branches/rest-dojo-ui/client/data/.htaccess

    r351 r352  
    11RewriteEngine on
    2 RewriteRule (.*) http://localhost:5984/rft/$1 [P,QSA]
     2RewriteRule (.*) http://localhost:5984/$1 [P,QSA]
  • Dev/branches/rest-dojo-ui/client/rft/store.js

    r351 r352  
    161161        });
    162162
    163         return new CouchStore({target: 'data/'});
     163        return new CouchStore({target: 'data/rft/'});
    164164
    165165    });
Note: See TracChangeset for help on using the changeset viewer.