Merge remote-tracking branch 'mainline/1.0.x' into people_tags_rebase
Conflicts: actions/tagother.php classes/Profile.php classes/Profile_tag.php js/util.min.js
This commit is contained in:
12
js/util.js
12
js/util.js
@@ -1590,6 +1590,18 @@ var SN = { // StatusNet
|
||||
SN.U.FormXHR($(this));
|
||||
return false;
|
||||
});
|
||||
$('form.ajax input[type=submit]').live('click', function() {
|
||||
// Some forms rely on knowing which submit button was clicked.
|
||||
// Save a hidden input field which'll be picked up during AJAX
|
||||
// submit...
|
||||
var button = $(this);
|
||||
var form = button.closest('form');
|
||||
form.find('.hidden-submit-button').remove();
|
||||
$('<input class="hidden-submit-button" type="hidden" />')
|
||||
.attr('name', button.attr('name'))
|
||||
.val(button.val())
|
||||
.appendTo(form);
|
||||
});
|
||||
},
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user