aboutsummaryrefslogtreecommitdiff
path: root/p
diff options
context:
space:
mode:
authorGravatar Alexis Degrugillier <github@ainw.org> 2015-02-14 11:00:26 -0500
committerGravatar Alexis Degrugillier <github@ainw.org> 2015-02-14 11:00:26 -0500
commitb8fd3caf8306e8616fcb2f2c0add95b74c2ec024 (patch)
tree7a134069fe89f3e0b18ee33be3a543ea4fcdc684 /p
parent4bb8548eccf22b40c25352fe27c66f1f8039ebcd (diff)
Harmonize share configuration view.
Before, for shares that don't need options, only a button to remove it was visible. It was source of confusion for users. I changed the look of those shares by using the same layout as others (minus the help). As there is no configuration possible for the url, the field is disabled but it is possible to change the name of the share. See #787
Diffstat (limited to 'p')
-rw-r--r--p/scripts/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js
index 1be75bb12..7fb583d39 100644
--- a/p/scripts/main.js
+++ b/p/scripts/main.js
@@ -1097,7 +1097,7 @@ function init_share_observers() {
$('.share.add').on('click', function(e) {
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('##label##', opt.html().trim(), 'g');
row = row.replace('##type##', opt.val(), 'g');
row = row.replace('##help##', opt.data('help'), 'g');
row = row.replace('##key##', shares, 'g');