2012-02-03 00:59:40 +01:00
|
|
|
(function($) {
|
|
|
|
$('.ss-assetuploadfield').entwine({
|
|
|
|
onmatch: function() {
|
|
|
|
this._super();
|
|
|
|
|
|
|
|
// Hide the "second step" part until we're actually uploading
|
|
|
|
this.find('.ss-uploadfield-editandorganize').hide();
|
|
|
|
},
|
2012-05-14 01:43:36 +02:00
|
|
|
onunmatch: function() {
|
|
|
|
this._super();
|
|
|
|
},
|
2012-05-09 11:19:06 +02:00
|
|
|
onfileuploadadd: function(e) {
|
|
|
|
this.find('.ss-uploadfield-editandorganize').show();
|
|
|
|
},
|
2012-02-03 00:59:40 +01:00
|
|
|
onfileuploadstart: function(e) {
|
|
|
|
this.find('.ss-uploadfield-editandorganize').show();
|
|
|
|
}
|
|
|
|
});
|
2012-12-19 02:40:22 +01:00
|
|
|
|
|
|
|
$('.ss-uploadfield-view-allowed-extensions .toggle').entwine({
|
|
|
|
onclick: function(e) {
|
2015-11-05 06:36:59 +01:00
|
|
|
var allowedExt = this.closest('.ss-uploadfield-view-allowed-extensions'),
|
|
|
|
minHeightVal = this.closest('.ui-tabs-panel').height() + 20;
|
|
|
|
|
|
|
|
allowedExt.toggleClass('active');
|
|
|
|
allowedExt.find('.toggle-content').css('minHeight', minHeightVal);
|
2012-12-19 02:40:22 +01:00
|
|
|
}
|
|
|
|
});
|
2012-05-14 01:43:36 +02:00
|
|
|
}(jQuery));
|