Changeset: 003bcd0ae591 https://sourceforge.net/p/mrbs/hg-code/ci/003bcd0ae5911c8155ec30bbea19d6a4e4c3f553 Author: Campbell Morrison <cimorri...@hg.code.sf.net> Date: Fri Apr 14 10:03:14 2017 +0100 Log message:
Fixed a problem whereby when there was only one period name the delete symbol would appear briefly before being removed. diffstat: web/css/mrbs.css.php | 1 + web/js/edit_area_room.js.php | 7 +++++++ 2 files changed, 8 insertions(+), 0 deletions(-) diffs (29 lines): diff -r 22364b27b0a9 -r 003bcd0ae591 web/css/mrbs.css.php --- a/web/css/mrbs.css.php Fri Apr 14 09:43:49 2017 +0100 +++ b/web/css/mrbs.css.php Fri Apr 14 10:03:14 2017 +0100 @@ -682,6 +682,7 @@ .js .delete_period { display: inline-block; + visibility: hidden; <?php // gets switched on by JavaScript ?> padding: 0 1em; opacity: 0.7; } diff -r 22364b27b0a9 -r 003bcd0ae591 web/js/edit_area_room.js.php --- a/web/js/edit_area_room.js.php Fri Apr 14 09:43:49 2017 +0100 +++ b/web/js/edit_area_room.js.php Fri Apr 14 10:03:14 2017 +0100 @@ -257,7 +257,14 @@ toggleMode('fast'); }); toggleMode(0); + + <?php + // Work out if we can display the delete symbols, and then only + // after we have done that make them visible. (This stops the + // delete symbol appearing for a moment and then being removed). + ?> checkForLastPeriodName(); + $('.delete_period').css('visibility', 'visible'); <?php // When the Add Period button is clicked, duplicate the last period ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Mrbs-commits mailing list Mrbs-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mrbs-commits