Commit graph

25 commits

Author SHA1 Message Date
deschler
9e09bdccbc Moved update tab functionality to MainSwitch. 2013-02-17 19:23:50 +01:00
deschler
28f1a5eff2 Refactored MainSwitch into a singleton. 2013-02-17 16:59:34 +01:00
deschler
f262c5717a Fixed some visual glitches in tabular inlines. 2013-02-17 14:03:31 +01:00
deschler
8d2a7a7798 Refactored tabular inline treatment. Introduced a new TabularInlineGroup which stores information about its contained table. It handles most the complexity like updating the table or retrieving its translation fields through a TranslationFieldGrouper. It can return either all translation fields for the initial regrouping of columns or translation fields based on a jquery selector to handle the add another links. 2013-02-17 12:50:04 +01:00
deschler
6f60e4110b Merge branch 'master' into tabbed-tabular-inlines 2013-02-16 13:44:29 +01:00
deschler
7ff2a83240 Handled models that are used as inlines on the same page more than once. 2013-02-16 13:43:33 +01:00
deschler
bfc65c163f Started work on support for tabular inlines in tabbed translation fields (issue #66). 2013-02-16 13:41:43 +01:00
Dirk Eschler
03d933050a - Refactored the translation field grouping: Added a new reusable TranslationFieldGrouper which groups TranslationFields based on a fieldSelector parameter.
- Used camelCase consistently (this ain't Python).
2013-02-15 16:15:57 +01:00
Dirk Eschler
3b99305965 Initial work issue #79, where fields added through a add another link in stacked inlines aren't tabbed. 2013-02-14 17:56:16 +01:00
Dirk Eschler
f03d89d98d Handled generic inlines and fixed the ids used for tabs. 2013-02-13 11:04:54 +01:00
deschler
f470d2399c Fixed keys used in tabbed translation to group translations are not unique for inlines. A potential fix for issue #121 (work-in-progress). 2013-02-12 23:32:03 +01:00
wrwrwr
79165ed942 Avoid computing "grouped_translations" twice (for tabs and the main switch) in the tabbed translation admin script (the second computation was missing some languages under certain circumstances). 2013-01-24 13:00:32 +01:00
Dirk Eschler
321b8a1e48 Added comment about zinnia. 2012-11-29 13:13:07 +01:00
Mihai Sucan
6b48b46685 Update modeltranslation/static/modeltranslation/js/tabbed_translation_fields.js
Add support for fields inside collapsed groups.
2012-11-27 15:49:32 +02:00
Dirk Eschler
9fba4bcac9 Reverted to old force_jquery.js behaviour. 2012-10-27 15:30:37 +02:00
Dirk Eschler
9f8571e655 Revert "Removed force_jquery.js."
This reverts commit 422c7aed74.
2012-10-27 14:43:08 +02:00
Dirk Eschler
422c7aed74 Removed force_jquery.js. 2012-10-26 16:02:22 +02:00
Jaap Roes
ae7477e439 issue 88
I think this is all that needs to change when you want to
depend on the version of jquery that's shipped with Django
2012-10-26 16:30:49 +03:00
Dirk Eschler
12ff878532 Fixed misnamed variable. 2012-10-19 13:45:34 +02:00
Dirk Eschler
9d58478b2e Fixed tabs don't properly support two-part language codes. Resolves issue 63. 2012-10-19 13:32:33 +02:00
Dirk Eschler
2edd7e1f57 Excluded tabular inlines from jQuery tabs, as they are currently not supported. 2012-08-06 11:51:16 +00:00
Dirk Eschler
d208a9d157 Changed jQuery search path. This allows use of a version of jQuery other than the one provided by Django. Users who want to force the use of Django's jQuery can include force_jquery.js. 2012-02-23 09:31:16 +00:00
Dirk Eschler
9ed4b2167e Reverted r123 as this leads to problems with inlines. 2011-10-10 19:53:33 +00:00
Dirk Eschler
6055a1daec Fixed tabs don't properly support two-part language codes. Resolves issue 63. 2011-10-10 18:13:20 +00:00
Dirk Eschler
15d0896415 Renamed media folder to static. 2011-06-05 19:46:20 +00:00