Remove dead code in webadmin

This commit is contained in:
Johannes Zellner
2016-10-13 16:55:55 +02:00
parent f8d50f6ea8
commit e6f8c83a6b
2 changed files with 0 additions and 29 deletions

View File

@@ -209,15 +209,6 @@
</div>
</div>
<!-- <div class="upgrade hide">
<div class="content">
<h4>Your Cloudron trial ends soon</h4>
<p>To keep your Cloudron, just <a href="https://cloudron.io/console.html#/billing" target="_blank">setup a payment method at cloudron.io</a> or <a href="mailto: support@cloudron.io">send us an email</a>.</p>
</div>
<div class="trigger">Want to keep your Cloudron?</div>
</div> -->
<!-- Footer -->
<footer class="text-center ng-cloak">
<span class="text-muted">&copy; 2015-16 <a href="https://cloudron.io" target="_blank">Cloudron</a></span>

View File

@@ -49,10 +49,6 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
password: ''
};
$scope.upgradeRequest = {
busy: false
};
$scope.isActive = function (url) {
if (!$route.current) return false;
return $route.current.$$route.originalPath.indexOf(url) === 0;
@@ -184,22 +180,6 @@ angular.module('Application').controller('MainController', ['$scope', '$route',
// wait till the view has loaded until showing a modal dialog
Client.onConfig(function (config) {
// if (!config.billing) {
// setTimeout(function () {
// $('.upgrade')[0].classList.remove('hide');
// $('.upgrade .trigger').hover(function () {
// $('.upgrade .content')[0].classList.add('active');
// $('.upgrade .trigger')[0].classList.add('active');
// });
// $('.upgrade').hover(function () {}, function () {
// $('.upgrade .content')[0].classList.remove('active');
// $('.upgrade .trigger')[0].classList.remove('active');
// });
// }, 2000);
// }
// check if we are actually updating
if (config.progress.update && config.progress.update.percent !== -1) {
window.location.href = '/update.html';