Skip to content
Extraits de code Groupes Projets
Valider 77383930 rédigé par Rick Waldron's avatar Rick Waldron Validation de Maxwell Salzberg
Parcourir les fichiers

Moved .live(...) into $(function() {}) block - DOM logic should not be left to...

Moved .live(...) into $(function() {}) block - DOM logic should not be left to synchronously execute outside of a DOMContentLoaded closure
parent 1f2592db
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
......@@ -3,18 +3,6 @@
* the COPYRIGHT file.
*/
$('#move_friends_link').live( 'click', function(){
$.post('/aspects/move_friends',
{ 'moves' : $('#aspect_list').data() },
function(){ $('#aspect_title').html("Groups edited successfully!");});
$(".person").css('background-color','none');
$('#aspect_list').removeData();
$(".person").attr('from_aspect_id', function(){return $(this).parent().attr('id')})
});
function decrementRequestsCounter(){
var old_request_count = $(".new_requests").html().match(/\d+/);
......@@ -30,6 +18,19 @@ function decrementRequestsCounter(){
}
$(function() {
$('#move_friends_link').live( 'click', function(){
$.post('/aspects/move_friends',
{ 'moves' : $('#aspect_list').data() },
function(){ $('#aspect_title').html("Groups edited successfully!");});
$(".person").css('background-color','none');
$('#aspect_list').removeData();
$(".person").attr('from_aspect_id', function(){return $(this).parent().attr('id')})
});
$("ul .person").draggable({
revert: true
});
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter