aboutsummaryrefslogtreecommitdiff
path: root/p/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'p/scripts')
-rw-r--r--p/scripts/main.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index aeb044e88..d91166e09 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -980,15 +980,16 @@ function init_share_observers() {
});
$('.share.add').on('click', function(e) {
- e.preventDefault();
var opt = $(this).siblings('select').find(':selected');
var row = $(this).parents('form').data(opt.data('form'));
row = row.replace('##label##', opt.html(), 'g');
row = row.replace('##type##', opt.val(), 'g');
row = row.replace('##help##', opt.data('help'), 'g');
row = row.replace('##key##', shares, 'g');
- $(this).parents('.form-actions').before(row);
+ $(this).parents('.form-group').before(row);
shares++;
+
+ return false;
});
}