Merge branch 'overcastsoftware-master'

pull/1848/head
Matt Westcott 2015-10-20 10:37:28 +01:00
commit 69e277e5f5
4 zmienionych plików z 5 dodań i 4 usunięć

Wyświetl plik

@ -31,7 +31,7 @@ Changelog
* Fix: `PageManager.sibling_of(page)` and `PageManager.not_sibling_of(page)` now default to inclusive (i.e. `page` is considered a sibling of itself), for consistency with other sibling methods
* Fix: The "view live" button displayed after publishing a page now correctly reflects any changes made to the page slug (Ryan Pineo)
* Fix: API endpoints now accept and ignore the `_` query parameter used by jQuery for cache-busting
* Fix: Page slugs are no longer cut off when Unicode characters are expanded into multiple characters (Sævar Öfjörð Magnússon)
1.1 (15.09.2015)
~~~~~~~~~~~~~~~~

Wyświetl plik

@ -73,6 +73,7 @@ Contributors
* Ryan Pineo
* Petr Vacha
* Josh Barr
* Sævar Öfjörð Magnússon
Translators
@ -93,7 +94,7 @@ Translators
* German: Karl Sander, Johannes Spielmann, m0rph3u5, pcraston, Tammo van Lessen
* Greek: Serafeim Papastefanos, Jim Dal
* Hebrew (Israel): bjesus, Lior Abazon
* Icelandic: Arnar Tumi Þorsteinsson, saevarom
* Icelandic: Arnar Tumi Þorsteinsson, Sævar Öfjörð Magnússon
* Italian: Andrea Tagliazucchi, Claudio Bantaloukas, Alessio Di Stasio, Giacomo Ghizzani
* Japanese: Daigo Shitara, Toshikazu Michisu
* Mongolian: Delgermurun Purevkhuu, miiiga

Wyświetl plik

@ -67,7 +67,7 @@ Bug fixes
* ``PageManager.sibling_of(page)`` and ``PageManager.not_sibling_of(page)`` now default to inclusive (i.e. ``page`` is considered a sibling of itself), for consistency with other sibling methods
* The "view live" button displayed after publishing a page now correctly reflects any changes made to the page slug (Ryan Pineo)
* API endpoints now accept and ignore the ``_`` query parameter used by jQuery for cache-busting
* Page slugs are no longer cut off when Unicode characters are expanded into multiple characters (Sævar Öfjörð Magnússon)
Upgrade considerations
======================

Wyświetl plik

@ -296,7 +296,7 @@ function InlinePanel(opts) {
function cleanForSlug(val, useURLify) {
if (URLify != undefined && useURLify !== false) { // Check to be sure that URLify function exists, and that we want to use it.
return URLify(val, val.length);
return URLify(val);
} else { // If not just do the "replace"
return val.replace(/\s/g, '-').replace(/[^A-Za-z0-9\-\_]/g, '').toLowerCase();
}