1
0
forked from GitHub/gf-core

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.
This commit is contained in:
hallgren
2016-05-16 14:14:55 +00:00
parent 717876cb69
commit ed9715dd92
3 changed files with 43 additions and 25 deletions
+6 -5
View File
@@ -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) {