Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe10d6b commit 44f1d71Copy full SHA for 44f1d71
assets/javascripts/translate.js
@@ -15,10 +15,12 @@ var translate = (function () {
15
* @param {object} $this
16
*/
17
function _translateLanguage($this) {
18
+ var $translation = $this.closest('tr').find('.translation');
19
+
20
var data = {
- id: $this.data('id'),
21
+ id: $translation.data('id'),
22
language_id: $('#language_id').val(),
- translation: $.trim($this.closest('tr').find('.translation').val())
23
+ translation: $.trim($translation.val())
24
};
25
26
helpers.post($('#language_id').data('url'), data);
0 commit comments