Ignore:
Timestamp:
03/15/14 01:00:23 (11 years ago)
Author:
hendrikvanantwerpen
Message:
  • Support different environments with QED_ENV. If dev, run against qed-dev database, if production, run against qed database. The UI indicates if we are running in anything but production mode.
  • Return undefined if we allow page leaves, because null is treated as a value.
  • Changed format of design docs, so it can work for different databases.
  • Use correct design documents in configCouch, so server now actually updates them when it starts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Dev/trunk/src/client/qed-client/pages/surveyRun.js

    r506 r519  
    4747            .then(lang.hitch(this,function(allResponses){
    4848                array.forEach(allResponses, function(response){
    49                     var actions = {
    50                         view: {
    51                             callback: function(){},
     49                    var actions = {};
     50                    if ( !response.publicationDate ) {
     51                        actions.Delete = {
     52                            callback: function(){
     53                                responses.remove(response)
     54                                .then(function(){
     55                                    w.destroy();
     56                                });
     57                            },
    5258                            properties: {
    53                                 title: "View response"
    54                             }
    55                         }
    56                     };
    57                     if ( !response.publicationDate ) {
    58                         actions.remove = {
    59                             callback: function(){},
    60                             properties: {
    61                                 title: "Remove response"
     59                                icon: 'Delete',
     60                                title: "Delete response"
    6261                            }
    6362                        };
Note: See TracChangeset for help on using the changeset viewer.