Commit 660f5f4306f2902747a1da1e38d5cb48624db037

Authored by David RENÉ
1 parent 1c2f62e1

add xlib_selector function to get selected element and open url with that select…

…ed element in new window
Showing 1 changed file with 6 additions and 0 deletions   Show diff stats
resources/web/public/xlib/js/action.js 0 → 100644
  1 +
  2 +function xlib_selector (elem, url, name) {
  3 + var jq_element = $(elem).find('option:selected');
  4 + var value = jq_element.val();
  5 + location.href=url+'&'+name+'='+value;
  6 +}
0 7 \ No newline at end of file
... ...