From 67cdb6bd13b0aa09dfd8b51438bacaa7cdb6c270 Mon Sep 17 00:00:00 2001 From: yflory Date: Mon, 19 Mar 2018 17:25:31 +0100 Subject: [PATCH] Fix initial values in the pad creation screen --- www/common/common-ui-elements.js | 43 ++------------------------------ www/common/sframe-common.js | 1 - 2 files changed, 2 insertions(+), 42 deletions(-) diff --git a/www/common/common-ui-elements.js b/www/common/common-ui-elements.js index 877bea596..bb285e3dc 100644 --- a/www/common/common-ui-elements.js +++ b/www/common/common-ui-elements.js @@ -1947,7 +1947,6 @@ define([ 'class': 'cp-creation-template-element', 'title': name, }).appendTo($container); - console.log(obj.id); $span.data('id', obj.id); if (idx === 0) { $span.addClass('cp-creation-template-selected'); } $span.append(obj.icon || UI.getFileIcon({type: type})); @@ -2015,10 +2014,10 @@ define([ // Initial values if (!cfg.owned && typeof cfg.owned !== "undefined") { - $creation.find('#cp-creation-owned').attr('checked', false); + $creation.find('#cp-creation-owned').prop('checked', false); } if (cfg.skip) { - $creation.find('#cp-creation-remember').attr('checked', 'checked'); + $creation.find('#cp-creation-remember').prop('checked', true).trigger('change'); } UIElements.setExpirationValue(cfg.expire, $creation); @@ -2079,44 +2078,6 @@ define([ create(); }); - // Save settings button - /*var $ok = $('', {'class': 'fa fa-check', title: Messages.saved}).hide(); - var $spinner = $('', {'class': 'fa fa-spinner fa-pulse'}).hide(); - var okTo; - var $saveButton = $('