diff options
| author | hallgren <hallgren@chalmers.se> | 2016-05-16 14:14:55 +0000 |
|---|---|---|
| committer | hallgren <hallgren@chalmers.se> | 2016-05-16 14:14:55 +0000 |
| commit | 64058500575039a62316c26c51a28ecd939fb748 (patch) | |
| tree | e862bbee9d5b5d80f48a5f90681a0cc368a12e7f /src/www/gfse/sort.js | |
| parent | 0d4c64703e133e69bdbc84f182c357e0b467c132 (diff) | |
Wide Coverage Translation Demo: you can now reorder the application grammars
When selecting which application grammars to use for translation, after
pressing the "Grammars..." button, it is now possible to change the order
of the selected grammars by dragging them up and down in the list.
Diffstat (limited to 'src/www/gfse/sort.js')
| -rw-r--r-- | src/www/gfse/sort.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/www/gfse/sort.js b/src/www/gfse/sort.js index e2fc7ce90..4d8216c9c 100644 --- a/src/www/gfse/sort.js +++ b/src/www/gfse/sort.js @@ -17,11 +17,12 @@ function initialize_sorting(tagList,classList) { var sortable_class=listToSet(classList) function sortable(elem) { - return elem && (sortable_tag[elem.tagName] - ? sortable_class[elem.className] - ? elem - : null - : sortable(elem.parentNode)) + return elem && elem.tagName!="INPUT" && elem.tagName!="BUTTON" + && (sortable_tag[elem.tagName] + ? sortable_class[elem.className] + ? elem + : null + : sortable(elem.parentNode)) } function move_element(elem,x,y) { |
