mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

commit 328d116f709d3614bb1ad1aa1d1bbecb347944e7
parent 30cdd9fdf40692459c44b01705902e6ae3356bfe
Author: markseu <mark2011@mayberg.se>
Date:   Thu,  1 Mar 2018 20:08:41 +0100

Updated editor, removed IE8/IE9 support

Diffstat:
Msystem/plugins/edit.css | 2+-
Msystem/plugins/edit.js | 12+++++-------
Msystem/plugins/edit.php | 4++--
3 files changed, 8 insertions(+), 10 deletions(-)

diff --git a/system/plugins/edit.css b/system/plugins/edit.css @@ -1,5 +1,5 @@ /* Edit plugin, https://github.com/datenstrom/yellow-plugins/tree/master/edit */ -/* Copyright (c) 2013-2017 Datenstrom, https://datenstrom.se */ +/* Copyright (c) 2013-2018 Datenstrom, https://datenstrom.se */ /* This file may be used and distributed under the terms of the public license. */ .yellow-bar { position:relative; overflow:hidden; line-height:2em; margin-bottom:10px; } diff --git a/system/plugins/edit.js b/system/plugins/edit.js @@ -1,5 +1,5 @@ // Edit plugin, https://github.com/datenstrom/yellow-plugins/tree/master/edit -// Copyright (c) 2013-2017 Datenstrom, https://datenstrom.se +// Copyright (c) 2013-2018 Datenstrom, https://datenstrom.se // This file may be used and distributed under the terms of the public license. var yellow = @@ -537,17 +537,15 @@ yellow.toolbox = // Add element class addClass: function(element, name) { - var string = element.className + " " + name; - element.className = string.replace(/^\s+|\s+$/, ""); + element.classList.add(name); }, - + // Remove element class removeClass: function(element, name) { - var string = (" " + element.className + " ").replace(" " + name + " ", " "); - element.className = string.replace(/^\s+|\s+$/, ""); + element.classList.remove(name); }, - + // Add attribute information addValue: function(selector, name, value) { diff --git a/system/plugins/edit.php b/system/plugins/edit.php @@ -1,11 +1,11 @@ <?php // Edit plugin, https://github.com/datenstrom/yellow-plugins/tree/master/edit -// Copyright (c) 2013-2017 Datenstrom, https://datenstrom.se +// Copyright (c) 2013-2018 Datenstrom, https://datenstrom.se // This file may be used and distributed under the terms of the public license. class YellowEdit { - const VERSION = "0.7.6"; + const VERSION = "0.7.7"; var $yellow; //access to API var $response; //web response var $users; //user accounts