mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-12 09:13:15 +00:00
v.0.0.6
This commit is contained in:
parent
588abe760f
commit
d0479e80d6
5 changed files with 8 additions and 4 deletions
|
|
@ -45,6 +45,10 @@ Simple app containing a mixin model that integrates modeltranslation
|
|||
|
||||
## Release Notes
|
||||
|
||||
### v0.0.6
|
||||
|
||||
- Fixed js issue related to auto-generating slugs
|
||||
|
||||
### v0.0.5
|
||||
|
||||
- Now using django-modeltranslation 0.9.1;
|
||||
|
|
|
|||
4
setup.py
4
setup.py
|
|
@ -9,13 +9,13 @@ os.chdir(os.path.normpath(os.path.join(os.path.abspath(__file__), os.pardir)))
|
|||
|
||||
setup(
|
||||
name='wagtail-modeltranslation',
|
||||
version='0.0.5',
|
||||
version='0.0.6',
|
||||
packages=['wagtail_modeltranslation'],
|
||||
include_package_data=True,
|
||||
license='BSD License',
|
||||
description='Integration of django-modeltranslation with Wagtail CMS',
|
||||
long_description=README,
|
||||
url='',
|
||||
url='https://github.com/infoportugal/wagtail-modeltranslation',
|
||||
author='Rui Martins',
|
||||
author_email='rmartins16@gmail.com',
|
||||
classifiers=[
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@ $(document).ready(function() {
|
|||
$('#id_title_'+lang_code).on('focus', function() {
|
||||
$('#id_slug_'+lang_code).data('previous-val', $('#id_slug_'+lang_code).val());
|
||||
$(this).data('previous-val', $(this).val());
|
||||
console.log('focus');
|
||||
});
|
||||
|
||||
$('#id_title_'+lang_code).on('keyup keydown keypress blur', function() {
|
||||
|
|
|
|||
|
|
@ -18,8 +18,7 @@ def translated_slugs():
|
|||
|
||||
lang_codes = []
|
||||
for lang in settings.LANGUAGES:
|
||||
if lang[0] != settings.LANGUAGE_CODE:
|
||||
lang_codes.append("'%s'" % lang[0])
|
||||
lang_codes.append("'%s'" % lang[0])
|
||||
|
||||
js_languages = "<script>var langs=[%s];</script>" % (", ".join(lang_codes))
|
||||
|
||||
|
|
|
|||
Binary file not shown.
Loading…
Reference in a new issue