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/app/Router.js

    r515 r519  
    2929            this._handleHashChange(hash());
    3030            window.onbeforeunload = function(evt) {
    31                 var msg = Content.isDirty() ?
    32                         "Unsaved changes, leave anyway?" :
    33                         null;
    34                 evt.returnValue = msg;
     31                var msg;
     32                if ( Content.isDirty() ) {
     33                    msg = "Unsaved changes, leave anyway?";
     34                    evt.returnValue = msg;
     35                }
    3536                return msg;
    3637            };
Note: See TracChangeset for help on using the changeset viewer.