|
@@ -62,15 +62,11 @@ $( document ).ready(function() {
|
|
|
|
|
|
|
|
|
// Contrib share dynamic form
|
|
|
- $('#contrib-type-share').hide();
|
|
|
- $('[name="contrib-type"').change(function(e){
|
|
|
- console.log($(this).val());
|
|
|
- if ($(this).val() == 'share') {
|
|
|
- $('#contrib-type-share').slideDown();
|
|
|
- }
|
|
|
- else {
|
|
|
- $('#contrib-type-share').slideUp();
|
|
|
- }
|
|
|
+ if ($('[name="contrib-type"]').val() == 'share') { $('#contrib-type-share').show(); }
|
|
|
+ else { $('#contrib-type-share').hide(); }
|
|
|
+ $('[name="contrib-type"]').change(function(e){
|
|
|
+ if ($(this).val() == 'share') { $('#contrib-type-share').slideDown(); }
|
|
|
+ else { $('#contrib-type-share').slideUp(); }
|
|
|
});
|
|
|
|
|
|
});
|