216 Commits

Author SHA1 Message Date
Matthias Mees
6bd322e195 indexedDB feature test for autocache in editors.
References #186
2014-06-17 11:31:38 +02:00
Garvin Hicking
f5693b0b86 Added "clean" new option for using backend popups (disabled by default) as a per-user option
References #183
2014-06-17 09:50:26 +02:00
Ian
faccabef47 slight changes to enable wysiwyg editor textareas 2014-06-12 16:57:08 +02:00
Matthias Mees
b515c7f050 A better solution for the clickable categories list. 2014-06-04 20:29:43 +02:00
Matthias Mees
9fea866da9 Make the extra category list "a bit less clickable". 2014-06-04 16:31:23 +02:00
Matthias Mees
a915981b6a Move category list in entry editor.
Also trigger category selector on clicking category list.

References #176
2014-06-02 10:49:56 +02:00
onli
2d50bdd375 ML filter-folder save without reload via cookies (#155) 2014-05-29 23:16:41 +02:00
onli
eef94a8048 Integrate autosave_local into core (#118) 2014-05-29 19:26:13 +02:00
Garvin Hicking
0d43f5dea7 Merge branch '2.0' of github.com:s9y/Serendipity into 2.0 2014-05-28 10:37:16 +02:00
Garvin Hicking
ffb1a0769a fix typo, i81n 2014-05-28 10:37:00 +02:00
onli
0e41248edd Show ML-Button after Ajax-Upload
It might be useful by not to smartify those buttons
2014-05-26 21:28:56 +02:00
onli
795575a074 Add new img button to media chooser (plugins) 2014-05-26 21:09:27 +02:00
Garvin Hicking
dab92bdca6 * Adapted serendipity_editor.js to provide more global (though
deprecated) API access methods for plugins like amazonchooser
      and linktrimmer, to perform insertion. Also fixed the
      insertion of text when the ID of the element is not prefixed

(You may need to reload your browsercache to get the new JS)
2014-05-26 12:07:29 +02:00
Matthias Mees
ca530221eb Temporary fix for media library loading in a loop.
References #157
2014-05-26 10:12:07 +02:00
onli
c291c5166d Remember ML folder (#155) 2014-05-25 21:58:10 +02:00
onli
a8b4f05de2 Improve status-messages of ajax uploader (#126) 2014-05-25 21:30:36 +02:00
Matthias Mees
1375d12a08 Consolidate event handlers.
(I don't remember why this was in a seperate event handler, but we
don't need it to be anymore.)

References #85
2014-05-24 19:15:53 +02:00
Matthias Mees
26088f8ba5 If toggler does not have an id, don't store the state.
References #144
2014-05-24 19:10:14 +02:00
Matthias Mees
ab99abcbae Bug fix for serendipity.toggle_collapsible.
References #144
2014-05-24 18:27:20 +02:00
Matthias Mees
78b83266e3 Rewrite show/hide functionality as a reusable function
Introducing serendipity.toggle_collapsible, which

– is a reusable function available via the serendipity namespace
– has arguments to customize the show/hide icon, but also has
  sensible default fallbacks for those arguments
– creates an individual key in localStorage to store the open/
  close state in

The latter also fixes a bug(?) which made show/hide in the entry
editor save the state for entry metadata and advanced options in
the same localStorage key. This could be improved with a fallback
for toggling elements which don't have an id.

References #144
2014-05-24 17:21:37 +02:00
Matthias Mees
b8faaba829 Make category filtering a reusable function for live filtering
Can now be used anywhere where a "real-time" filter is desirable.
As a usage example, it's implemented for the list of installable
plugins. Should work anywhere, though – needs an input element,
a list of target elements and an element within those target
elements to contain the search term.

Also made the function for the reset button for this reusable.

References #154
2014-05-18 14:13:27 +02:00
onli
694b446e1a Move serendipiy_editor.js.tpl convertion into core
http://board.s9y.org/viewtopic.php?f=11&t=19927
2014-05-16 16:13:16 +02:00
onli
ccbfcf2e66 Finish uplaod resize function (#137)
configurable, some fixes, polyfill for chrome
2014-05-08 22:37:44 +02:00
Matthias Mees
b9be5eae5e Re-added change filename/target dir for media db uploads
References #136
2014-04-30 11:15:40 +02:00
Matthias Mees
0ef5a689f9 Uncomment minify images function to get a working image upload.
References #137
2014-04-30 10:11:22 +02:00
Matthias Mees
d13cb056f0 Remove stray debug code. 2014-04-29 13:29:08 +02:00
Matthias Mees
2475f952df Standardize select image from media db/show preview process.
This used to be two seperate processes for the category icon and
images selected in plugin/theme config. It has now been simplified
to use just one process, which also uses the same markup and JS.

This adds to the consistency of the UI/UX, but it also saves some
CSS and a lot of JS, most of the latter of the expensive kind that
modifies the DOM.
2014-04-29 13:22:55 +02:00
Matthias Mees
a3cb5e253c Re-use choose_media for selecting category icons.
Also, save some JS performance by generating the button in Smarty,
not in JS.

References #110 #85
2014-04-28 16:11:05 +02:00
Matthias Mees
7b5ef26e7e Use correct media db overlay for theme options.
References #110
2014-04-28 15:56:29 +02:00
Matthias Mees
9c061a77ae Use correct media db overlay for extended entry properties.
References #110
2014-04-28 15:51:14 +02:00
onli
976c0018e9 Init: Ajax image upload 2014-04-25 01:58:32 +02:00
Matthias Mees
2ae6bcc5dd Add reset button for category filter; add some styling.
References #123
2014-04-24 17:30:40 +02:00
Garvin Hicking
f89b34f2b0 Fix issue #128 2014-04-24 15:28:13 +02:00
Garvin Hicking
063b753892 Proof of concept idea for the "filter category" idea
http://board.s9y.org/viewtopic.php?f=11&t=19862
2014-04-24 15:21:25 +02:00
onli
f704df9365 support html5 multiple upload
closes #126
2014-04-23 02:27:14 +02:00
Matthias Mees
9e7fbdf6bf Only fire equal heights js on screens larger than 640px.
The equal heights boxes look weird on small screens, so we're not
firing the plugin there any longer.

This introduces a new variable for breakpoints for responsive JS.
Please *only* add more breakpoints if you actually use them.

References #100
2014-04-18 16:51:33 +02:00
Matthias Mees
ed1fb3c8a3 Open/close tags, support for language-based tags in non-WYSIWYG.
Some plugins might want to hook into the non-WYSIWYG editor and
create buttons which do use different "tags" for open/close or
not create HTML markup at all. This makes it possible for them
to do so.

References #122
References #114
2014-04-18 16:23:40 +02:00
Veit Lehmann
6b5017f016 js performance improvement: less DOM firing 2014-04-14 22:58:08 +02:00
onli
68be4a5f65 get rename token from html
serendipity_editor.js in default is static, so it can't be given by smarty. I copied the approach into the 2k11-version as well, so it won't get as easily lost.
2014-04-04 13:34:38 +02:00
onli
fd113ae212 Use id for textarea identification
this prodcues an easier compatiblity with the staticpage-plugin, and is
altogether more developer friendly than the documents.form-selector
2014-03-31 02:29:54 +02:00
Matthias Mees
31eba101f6 Rewrite toggle_extended function to work with wysiwyg editor.
References #102
2014-03-18 15:48:16 +01:00
Ian
9b3443dcd6 fix 390ec689c2 2014-03-12 20:25:10 +01:00
Ian
390ec689c2 get right instance for CKE plugin (and nugget textareas) 2014-03-11 18:07:33 +01:00
Matthias Mees
6d5c24af2f Move serendipity_editor.js reference back to <head>
The document ready shorthand function needed a little adapting as
well (which is not an issue since we abandoned noConflict mode).

References #91
2014-03-11 10:44:10 +01:00
Matthias Mees
af9cd2135d Don't use updateOnResize in IE8 for equal heights
This seems to fix the scrolling issues in IE8 in the media db.

References #83
2014-03-10 18:16:18 +01:00
Matthias Mees
9248aae9a9 Adapt AccessifyHTML5 to latest layout changes 2014-03-09 11:41:57 +01:00
Matthias Mees
7e16db1b62 Automagically remove msg timestamp 2014-03-08 13:34:02 +01:00
Matthias Mees
e41ef67f99 Add a (JS only) category list to entry editor
This will emit (and update) a list of all categories assigned to an
entry based on the selection in the category selection popup.

References #77
2014-03-08 10:47:45 +01:00
Matthias Mees
8b08f066a5 Added details JS polyfill for Firefox and IE 2014-03-08 00:38:12 +01:00
Matthias Mees
3e281fe41a Change MFP close button to submit_state for select_category
References #77
2014-03-07 14:18:30 +01:00