From 70a4b3bdf21397ec798da09a9b8f78701ded0002 Mon Sep 17 00:00:00 2001 From: yflory Date: Fri, 19 Jun 2020 15:53:29 +0200 Subject: [PATCH] Stop using previous values in pad creation screen --- www/common/common-ui-elements.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 2b8e42790..7d829bdb0 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -2856,6 +2856,7 @@ define([ }); }; + /* UIElements.setExpirationValue = function (val, $expire) { if (val && typeof (val) === "number") { $expire.find('#cp-creation-expire').attr('checked', true).trigger('change'); @@ -2879,6 +2880,7 @@ define([ $expire.find('#cp-creation-expire-false').attr('checked', true); } }; + */ UIElements.getPadCreationScreen = function (common, cfg, appCfg, cb) { appCfg = appCfg || {}; if (!common.isLoggedIn()) { return void cb(); } @@ -3191,10 +3193,12 @@ define([ // Initial values + /* if (!cfg.owned && typeof cfg.owned !== "undefined") { $creation.find('#cp-creation-owned').prop('checked', false); } UIElements.setExpirationValue(cfg.expire, $creation); + */ // Create the pad var getFormValues = function () {