diff options
Diffstat (limited to 'rhodecode/public/js/rhodecode.js')
-rw-r--r-- | rhodecode/public/js/rhodecode.js | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/rhodecode/public/js/rhodecode.js b/rhodecode/public/js/rhodecode.js index f6537273..e43c6305 100644 --- a/rhodecode/public/js/rhodecode.js +++ b/rhodecode/public/js/rhodecode.js @@ -86,7 +86,18 @@ var prevElementSibling = function( el ) { } } - +var setSelectValue = function(select, val){ + var selection = YUD.get(select); + + // select element + for(var i=0;i<selection.options.length;i++){ + console.log(selection.options[i].innerHTML); + if (selection.options[i].innerHTML == val) { + selection.selectedIndex = i; + break; + } + } +} /** |