288 Commits

Author SHA1 Message Date
onli
bfce8ffb61 Improve gallery insert function (#552)
Border around selected images, button hidden till iamge is selected, init language constant
2018-06-11 23:12:12 +02:00
Guillaume Zin
7994bda7b5 Use event listener on submit for check save 2018-03-23 20:48:32 +01:00
Guillaume Zin
d459d54271 Add functions for entry check 2018-03-23 18:12:21 +01:00
Matthias Mees
7410465496 Improve accessibility of iconfont icons
Iconfont icons are of no value to screenreader users; in our case,
they get alternative text. By adding 'aria-hidden="true"' to the
<span> holding the iconfont icon, we avoid the screenreader trying
to announce the iconfont icon.
2016-10-26 11:29:25 +02:00
Matthias Mees
d3d205ece9 Replace JS-based equal heights with flexbox solution
- Only fire JS equal heights if flexbox is not supported
- Add flexbox styles for backend sections that used to use
  JS based equal heights
- Use Modernizr's flexbox detection to use the old styles
  as a fallback for non-flexbox browsers
- Generate new oldie stylesheet
- Do not use .clearfix with flexbox (Safari doesn't like it)
- Apply IE11 fix for flexbox, see goo.gl/pglrbm

References #333
2016-10-23 14:05:00 +02:00
onli
b7e2d57290 Fix: Editor cache not emptied in IE 2016-09-11 23:55:16 +02:00
onli
3aed346370 Fix image upload progress bar 2016-09-11 17:41:07 +02:00
onli
5108486af3 Remove backend js from preview_iframe in next 2016-09-11 15:38:41 +02:00
onli
e34e0db1e5 Covnert bulk mover into a single button + popup (fixes #409) 2016-05-25 22:11:17 +00:00
onli
dfc41df02a ajax-uploaded now moves image into selected folder 2016-05-25 20:51:18 +00:00
Matthias Mees
8c92422bce Use serendipity.openPopup to fix weird dashboard double click
References #387
2016-02-08 20:39:32 +01:00
onli
0003150796 Ajax ML upload died on non-images (fixes #353) 2016-01-15 13:28:49 +01:00
Ian
04104a3e4d Fixed media item delete handler
References #371
Closes #371
2015-10-31 14:10:52 +01:00
Ian
897337cb8e allow array items for SetCookie and now use a ML-Filter cookie
(We will have to decide before release, if we want to keep this, though.)
2015-10-29 12:08:33 +01:00
Ian
3030b80c2b fix rename media file reload issue
References #370

and allow better umlaut conversion

This is a plain javascript event, therefore the message and reload stuff had to move into the JS caller.
2015-10-17 15:03:15 +02:00
Ian
7c21de8aa8 Allow bulk move ML items to Uploads Root too
Fixes many issues like for renaming files and subdir handling, database placements and other issues.
Structures case DIR, FILE and FILE vars for renaming, moving, select and replace.
Touches directoryEdit and mediaproperties related boundaries.
Adds better event messages, which fixes $ob_serendipity_moveMediaDirectory.
Extends and fixes media_items realname issues and changes the length of the item title to be as long as possible.
Added new constants to be executed to the lang files in near future, when some follow up commits have been added.
2015-10-05 18:19:09 +02:00
Ian
df17a410b0 fix eraseEntryEditorCache
remember, this is preview_iframe.tpl updertHooks IFRAME and may not be jQuery based

References #343
2015-08-18 11:33:04 +02:00
onli
27cf643135 Show ML toolbar when inserting image (#281)
This commit has two parts: First, media_items was changed to show (parts) of the image toolbar also when being in the editor popup, if the option is enabled. Second, it modifies the rename and the delete button of that toolbar to use ajax, because they otherwise would return to the normal ML. TODO1: Ajaxify the rescale function as well, or make it redirect properly, so the button can be enabled. TODO2: See if the code in media_items can be simplified, it is a dumb translation of the existing approach
2015-03-14 22:02:49 +01:00
Garvin Hicking
94eb2b32de We also need to escape the JS at this point 2015-03-12 12:23:52 +01:00
Matthias Mees
e932ad78b0 Add extra test for localStorage
localStorage may be deactivated by setting a config option or using
security-related extensions at least in some browsers, which might
(at least in FF) break backend JS functionality.

So we need an extra check if localStorage is null.

References #306
2015-02-17 18:22:58 +01:00
onli
7740886ff9 Merge branch 'feature_updateAll'
Conflicts:
	docs/NEWS
	lang/UTF-8/plugin_lang.php
	lang/UTF-8/serendipity_lang_bg.inc.php
	lang/UTF-8/serendipity_lang_cn.inc.php
	lang/UTF-8/serendipity_lang_cs.inc.php
	lang/UTF-8/serendipity_lang_cz.inc.php
	lang/UTF-8/serendipity_lang_da.inc.php
	lang/UTF-8/serendipity_lang_de.inc.php
	lang/UTF-8/serendipity_lang_en.inc.php
	lang/UTF-8/serendipity_lang_es.inc.php
	lang/UTF-8/serendipity_lang_fa.inc.php
	lang/UTF-8/serendipity_lang_fi.inc.php
	lang/UTF-8/serendipity_lang_fr.inc.php
	lang/UTF-8/serendipity_lang_hu.inc.php
	lang/UTF-8/serendipity_lang_is.inc.php
	lang/UTF-8/serendipity_lang_it.inc.php
	lang/UTF-8/serendipity_lang_ja.inc.php
	lang/UTF-8/serendipity_lang_ko.inc.php
	lang/UTF-8/serendipity_lang_nl.inc.php
	lang/UTF-8/serendipity_lang_no.inc.php
	lang/UTF-8/serendipity_lang_pl.inc.php
	lang/UTF-8/serendipity_lang_pt.inc.php
	lang/UTF-8/serendipity_lang_pt_PT.inc.php
	lang/UTF-8/serendipity_lang_ro.inc.php
	lang/UTF-8/serendipity_lang_ru.inc.php
	lang/UTF-8/serendipity_lang_sa.inc.php
	lang/UTF-8/serendipity_lang_se.inc.php
	lang/UTF-8/serendipity_lang_sk.inc.php
	lang/UTF-8/serendipity_lang_ta.inc.php
	lang/UTF-8/serendipity_lang_tn.inc.php
	lang/UTF-8/serendipity_lang_tr.inc.php
	lang/UTF-8/serendipity_lang_tw.inc.php
	lang/UTF-8/serendipity_lang_zh.inc.php
	lang/addlang.txt
	lang/plugin_lang.php
	lang/serendipity_lang_bg.inc.php
	lang/serendipity_lang_cn.inc.php
	lang/serendipity_lang_cs.inc.php
	lang/serendipity_lang_cz.inc.php
	lang/serendipity_lang_da.inc.php
	lang/serendipity_lang_de.inc.php
	lang/serendipity_lang_en.inc.php
	lang/serendipity_lang_es.inc.php
	lang/serendipity_lang_fa.inc.php
	lang/serendipity_lang_fi.inc.php
	lang/serendipity_lang_fr.inc.php
	lang/serendipity_lang_hu.inc.php
	lang/serendipity_lang_is.inc.php
	lang/serendipity_lang_it.inc.php
	lang/serendipity_lang_ja.inc.php
	lang/serendipity_lang_ko.inc.php
	lang/serendipity_lang_nl.inc.php
	lang/serendipity_lang_no.inc.php
	lang/serendipity_lang_pl.inc.php
	lang/serendipity_lang_pt.inc.php
	lang/serendipity_lang_pt_PT.inc.php
	lang/serendipity_lang_ro.inc.php
	lang/serendipity_lang_ru.inc.php
	lang/serendipity_lang_sa.inc.php
	lang/serendipity_lang_se.inc.php
	lang/serendipity_lang_sk.inc.php
	lang/serendipity_lang_ta.inc.php
	lang/serendipity_lang_tn.inc.php
	lang/serendipity_lang_tr.inc.php
	lang/serendipity_lang_tw.inc.php
	lang/serendipity_lang_zh.inc.php
	templates/2k11/admin/style.css
2015-02-15 19:22:15 +01:00
Matthias Mees
430d364a88 Only expand non-overlayed cats/tags if necessary
References #290
2015-02-08 17:37:10 +01:00
Matthias Mees
6249a6af5e Add generic odd/even for dashboard widgets
- Use CSS for odd/even spacing + clearing in browsers that support
  it using :nth-child and the new class .dashboard_widget (to
  seperate positioning styles from visual styles)
- 'Polyfill' said behaviour for IE 8 using JS
- Adapt hardcoded dashboard sections accordingly
- Add fix for IE 8 where mq_small is not set properly
- New build of oldie.css

References #297
2015-02-08 16:15:06 +01:00
onli
f7c0fa23bc Show spartacus errors, maka ajax detection global 2015-01-30 22:07:08 +01:00
Garvin Hicking
5f7f2e5ce0 Issue #234: Granular forcing of backend popups for specific areas
References #234
2015-01-29 15:25:38 +01:00
onli
100c344a14 Use png instead of gif, fix ajax get 2015-01-28 23:45:37 +01:00
onli
c3d6d57db3 show activity indicator and update status 2015-01-28 01:54:38 +01:00
Garvin Hicking
253428dd93 Drop $authorid as discussed
References #264
2015-01-27 14:21:53 +01:00
onli
ca6ac5eef9 Update all plugins button, js approach (#194, #279) 2015-01-27 01:42:37 +01:00
Matthias Mees
ff5d1a3d5b Fix mispositioned 'no cats/tags' msg, fix missing 'no tags' msg
Also rewrote the JS that checks if freetags plugin is even in use.

References #275
2015-01-24 14:31:15 +01:00
Matthias Mees
9117b48176 Remove legacy JS for limiting media file overlay width
This is no longer necessary, but was required in an earlier stage
of the media db overlay.

References #73
2015-01-23 13:12:44 +01:00
Ian
be9d45eb73 fix failing error if no freetags installed 2015-01-23 11:09:06 +01:00
Matthias Mees
3d2b77e1b5 Revise cats/tags quick view styles
(Apparently, I totally misread the comment by @garvinhicking.
Oops.)

References #239
2015-01-19 11:18:39 +01:00
Matthias Mees
1a0e039f6f Add proper lang constants for tags quick view
– Also translated the new constants to German
- Also removed duplicate tagsList function (remnant of the merge
  conflict)

References #239
2015-01-19 09:38:51 +01:00
onli
4b83f8dcce JS-uploader can't download, don't try 2015-01-18 21:00:11 +01:00
onli
dcb044fb28 Set image-owner to all authers with js-upload (#264) 2015-01-18 20:33:41 +01:00
Ian
3902c88916 fix Resize before Upload not respecting target_filename
References #264 (was not really mentioned there)
2015-01-18 14:17:11 +01:00
Ian
f6438592c4 one more respect highlighter 2015-01-18 12:51:29 +01:00
Ian
7fe1264f00 respect githubs highlighter 2015-01-18 12:47:18 +01:00
Matthias Mees
1448313fb8 Merge branch '2.0' of github.com:s9y/Serendipity into 2.0
Conflicts:
	templates/2k11/admin/entries.tpl
	templates/2k11/admin/serendipity_editor.js.tpl
	templates/2k11/admin/style.css
2015-01-17 18:12:15 +01:00
Ian
1480e0a88b ups how come? 2015-01-17 18:11:42 +01:00
Matthias Mees
4ecc125adb Merge branch '2.0' of github.com:s9y/Serendipity into 2.0
Conflicts:
	templates/2k11/admin/entries.tpl
	templates/2k11/admin/serendipity_editor.js.tpl
	templates/2k11/admin/style.css
2015-01-17 18:10:41 +01:00
Matthias Mees
0dc96ec9b8 Fix showing cats/tags list overlay on clicking cats/tags list
This was broken due to my recent markup changes. Also added lang
constants for the tags list, but since we could label it better,
introduced new lang constants for it.

References #239
2015-01-17 18:05:20 +01:00
Matthias Mees
7c4f1f1052 Add a 'quick view' for assigned tags to the entry editor
Basically replicates the same functionality as for categories. JS
only. Also revised the markup and JS of that for consistency. Too
lazy to make a generic function for it, we can do that later.

References #239
2015-01-17 17:41:35 +01:00
Matthias Mees
0f2f437c8c A better solution for media file/template info overlays
Since the JS-based solution does not work well for cases where the
overlay is larger than the (very small) image, we'll have to go
with a CSS-based solution. This sets the height of the overlay
to at least 7em, which should cover the core info of the overlay
(which is usually 4 lines of text). Also, we'll have to go with
overflow: scroll; in case the info is longer.

Not a good solution in a reponsive context, but it should work. :(

References #230
2015-01-16 12:27:22 +01:00
Matthias Mees
0eaf9db416 Sync heights of info overlays
This has been an optical issue for both media files and themes,
which is why my original idea to have large preview files would
not have solved it. However, a CSS-based solution would not have
been solid, either, so I went with a few lines of jQuery to sync
the height with the outer container.

References #230
2015-01-15 19:31:55 +01:00
Matthias Mees
d0af671d2f Add better icons for compact/hierarchical category view toggle.
Includes new iconfont build.

References #254
2015-01-01 15:25:13 +01:00
Matthias Mees
6646955b09 Use localStorage to store category overlay view state.
Way better than cookies, thanks @onli!

References #254
2014-12-31 19:37:56 +01:00
Matthias Mees
8cb627cb31 Add switch for category overlay view + JS code for it.
References #254
2014-12-31 15:18:52 +01:00
Matthias Mees
29fada318b Hide non-overlayed tags/categories if overlays are used.
References #222
2014-11-20 15:12:47 +01:00