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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user