Skip to content

Commit

Permalink
working on #1
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Feb 17, 2016
1 parent 0c26b87 commit f56ae53
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions glotdict.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
/*
TODO
*/
jQuery(function() {
jQuery('table.translations')
.on('click', 'a.edit', gd_add_terms)
.on('dblclick', 'tr td', gd_add_terms);

function gd_add_terms(e) {
e.preventDefault();
var row_id = jQuery(this).closest('tr').attr('row');
var editor = jQuery('#editor-' + row_id);
if (!editor.length) {
return;
}
var editor_original = jQuery('#editor-' + row_id + ' .original');
console.log(editor_original);
}
});
Binary file added icons/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit f56ae53

Please sign in to comment.