mirror of
https://github.com/pretix/pretix.git
synced 2025-12-05 21:32:28 +00:00
Compare commits
5 Commits
a11y-autof
...
release/4.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
25beb8f6c6 | ||
|
|
e3c55fd0fe | ||
|
|
5bc92a9f04 | ||
|
|
1de57aaa80 | ||
|
|
6ae2fa5964 |
@@ -19,4 +19,4 @@
|
||||
# You should have received a copy of the GNU Affero General Public License along with this program. If not, see
|
||||
# <https://www.gnu.org/licenses/>.
|
||||
#
|
||||
__version__ = "4.19.0.dev0"
|
||||
__version__ = "4.18.2.post1"
|
||||
|
||||
@@ -482,33 +482,27 @@ Vue.component('item', {
|
||||
expanded: this.$root.show_variations_expanded
|
||||
};
|
||||
},
|
||||
watch: {
|
||||
expanded: function (newValue) {
|
||||
var v = this.$refs.variations;
|
||||
if (newValue) {
|
||||
v.hidden = false;
|
||||
} else {
|
||||
// Vue.nextTick does not work here
|
||||
window.setTimeout(function () {
|
||||
v.style.maxHeight = 0;
|
||||
}, 50);
|
||||
}
|
||||
v.style.maxHeight = v.scrollHeight + 'px';
|
||||
}
|
||||
},
|
||||
mounted: function () {
|
||||
if (this.$refs.variations) {
|
||||
this.$refs.variations.hidden = !this.expanded;
|
||||
if (!this.expanded) {
|
||||
this.$refs.variations.style.maxHeight = '0px';
|
||||
var $this = this;
|
||||
this.$refs.variations.hidden = true;
|
||||
this.$refs.variations.addEventListener('transitionend', function (event) {
|
||||
if (event.target == this) {
|
||||
this.hidden = !$this.expanded;
|
||||
this.style.maxHeight = 'none';
|
||||
}
|
||||
});
|
||||
this.$watch('expanded', function (newValue) {
|
||||
var v = this.$refs.variations;
|
||||
v.hidden = false;
|
||||
v.style.maxHeight = (newValue ? 0 : v.scrollHeight) + 'px';
|
||||
// Vue.nextTick does not work here
|
||||
window.setTimeout(function () {
|
||||
v.style.maxHeight = (!newValue ? 0 : v.scrollHeight) + 'px';
|
||||
}, 50);
|
||||
})
|
||||
}
|
||||
this.$refs.variations.addEventListener('transitionend', function (event) {
|
||||
if (this.style.maxHeight && this.style.maxHeight != '0px') {
|
||||
this.style.maxHeight = 'none';
|
||||
} else {
|
||||
this.hidden = true;
|
||||
}
|
||||
});
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
|
||||
@@ -218,7 +218,7 @@ setup(
|
||||
'python-u2flib-server==4.*',
|
||||
'pytz',
|
||||
'pyuca',
|
||||
'redis==4.5.*',
|
||||
'redis==4.5.*,>=4.5.4',
|
||||
'reportlab==3.6.*',
|
||||
'requests==2.28.*',
|
||||
'sentry-sdk==1.15.*',
|
||||
|
||||
Reference in New Issue
Block a user