app/assets/javascripts/translation_center/center.js in translation_center-0.0.6 vs app/assets/javascripts/translation_center/center.js in translation_center-0.0.7
- old
+ new
@@ -7,11 +7,11 @@
$('.language_to').click(function(){
var language_to = $.trim($(this).attr('lang_sym'));
$.ajax({
type: 'POST',
- url: Routes.translation_center_set_lang_to_path(),
+ url: Routes.translation_center_set_lang_to_path,
data: { lang : language_to },
success: function(){
location.reload();
}
});
@@ -19,22 +19,22 @@
$('.language_from').click(function(){
var language_from = $.trim($(this).attr('lang_sym'));
$.ajax({
type: 'POST',
- url: Routes.translation_center_set_lang_from_path(),
+ url: Routes.translation_center_set_lang_from_path,
data: { lang : language_from },
success: function(){
location.reload();
}
});
});
$('#search_activity').click(function(){
$.ajax({
type: 'GET',
- url: Routes.translation_center_search_activity_path({format: 'js'}),
+ url: Routes.translation_center_search_activity_path + '.js',
data: $('#search_form').serialize()
});
return false;
});
@@ -44,10 +44,10 @@
})
$('#search_form').children('select').val('');
$('#search_activity').click();
});
- $(".pagination a").live('click', function() {
+ $(".pagination a").on('click', function() {
$.ajax({
type: "GET",
url: $(this).attr("href"),
dataType: "script"
});