According to my tests, this is what makes datetime-local fail in
browsers which already support it. Replacing the T in the value is
required to set the date/time in browsers which don't support it,
but it somehow throws off the (re)setting in browsers which do.
So using Modernizr's feature test to check if the replacement is
required should solve the issue. However, this seems strange, we
should keep an eye on it.
Apparently, magnificPopup does not like the click handler if the
toggler is an a element, which we probably never noticed since all
the other togglers used in the backend are buttons.
preview_iframe.tpl used head_link_stylesheet, which contains the link to the backend-css while in the backend, like when the preview is generated. This workaround constructs the path to the frontend-css manually - which should work as long as it follows the convention fo being called serendipity.css, which is hardcoded everywhere anyway
– <button> must have an explicit type="buttons" since it falls back
to type="submit", which can have side effects
– <button> must not have a href attribute, always use data-href
(Or just show/hide them for use-popups.)
For some weird reason, this seems to fire only on the second click
on the toggler, not on the first. Need input from @onli on this.
Also, this needs a better icon. I did not want to go through a new
iconfont build just for this one icon now.
Partial manual revert of 168cb146eaec3c568527bbc5dcf06b4cb6e9bda8.
Please note that this does *not* contain any changes to the UI as
discussed; those will follow later.
References #41
Draft previews threw:
Fatal error: Call to a member function assignByRef() on a non-object in /fullpath/include/functions_entries.inc.php on line 1235, which is the $serendipity['smarty']->assignByRef('entries', $dategroup); line.
Please double check if that is gone now.
The karma plugin had its own solution for config option groups in
tabs which didn't work well with the refactored 2.0 backend. We
have a solution for config groups in the core; it now uses this
for better backend consistency.
References #54