(function () {
    'use strict';

    var currentVersion = '1.0.4';

    var getAppCacheStatus = function () {
        var appCache = window.applicationCache;

        switch (appCache.status) {
            case appCache.UNCACHED: // UNCACHED == 0
                return 'Fehler';
                break;
            case appCache.IDLE: // IDLE == 1
                return 'OK';
                break;
            case appCache.CHECKING: // CHECKING == 2
                return 'Prüfe ...';
                break;
            case appCache.DOWNLOADING: // DOWNLOADING == 3
                return 'Download läuft ...';
                break;
            case appCache.UPDATEREADY:  // UPDATEREADY == 4
                return 'Update verfügbar';
                break;
            case appCache.OBSOLETE: // OBSOLETE == 5
                return 'Veraltet';
                break;
            default:
                return 'Unbekannt';
                break;
        }
    };

    var offerReload = false;

    window.addEventListener('load', function () {
        window.applicationCache.addEventListener('updateready', function () {
            console.log('UPDATE READY');
            offerReload = true;
            if (window.applicationCache.status == window.applicationCache.UPDATEREADY) {
                console.log('UPDATE READY CHECK');
                // Browser downloaded a new app cache.
                // Swap it in and reload the page to get the new hotness.
            } else {
                // Manifest didn't changed. Nothing new to server.
            }
        }, false);
    }, false);

    angular.module('psadmin').controller('AboutCtrl', function ($scope, $interval) {
        $scope.appCache = {
            status: getAppCacheStatus(),
            version: currentVersion,
            offerReload: offerReload
        };

        $scope.reload = function () {
            window.location.reload(true);
        };

        $interval(function () {
            $scope.appCache.status = getAppCacheStatus();
            $scope.appCache.offerReload = offerReload;
        }, 5000);
    });
})();
@@ -57,17 +57,17 @@
  = '1.0.
-4
+5
 ';%0A%0A    

version 1.0.5