Revision 795,
1.1 KB
checked in by viani, 15 years ago
(diff) |
Ticket #488 - Inclusão do módulo workflow no ramo trunk do repositório Expresso.
|
-
Property svn:executable set to
*
|
Rev | Line | |
---|
[795] | 1 | window.document.workflow_form.onsubmit = selectAll; |
---|
| 2 | |
---|
| 3 | function selectAll() |
---|
| 4 | { |
---|
| 5 | var formulario = document.getElementsByTagName('SELECT'); |
---|
| 6 | for (var i = 0; i < formulario.length; i++) |
---|
| 7 | { |
---|
| 8 | if (formulario[i].type == 'select-multiple') |
---|
| 9 | { |
---|
| 10 | var userList = formulario[i]; |
---|
| 11 | for(var j = 0; j < userList.length; j++) |
---|
| 12 | userList.options[j].selected = true; |
---|
| 13 | } |
---|
| 14 | } |
---|
| 15 | } |
---|
| 16 | |
---|
| 17 | function openParticipants(newWidth, newHeight, target_element, option) |
---|
| 18 | { |
---|
| 19 | newScreenX = screen.width - newWidth; |
---|
| 20 | newScreenY = 0; |
---|
| 21 | |
---|
| 22 | var page = 'index.php?menuaction=workflow.ui_participants.form'; |
---|
| 23 | if (target_element) |
---|
| 24 | page += "&target_element=" + target_element; |
---|
| 25 | if (option) |
---|
| 26 | page += "&" + option; |
---|
| 27 | |
---|
| 28 | window.open(page,'','width='+newWidth+',height='+newHeight+',screenX='+newScreenX+',left='+newScreenX+',screenY='+newScreenY+',top='+newScreenY+',toolbar=no,scrollbars=no,resizable=no'); |
---|
| 29 | } |
---|
| 30 | |
---|
| 31 | function delUsers(target_element) |
---|
| 32 | { |
---|
| 33 | target = window.document.getElementById(target_element); |
---|
| 34 | for(var i = 0;i < target.options.length; i++) |
---|
| 35 | { |
---|
| 36 | if(target.options[i].selected) |
---|
| 37 | { |
---|
| 38 | target.options[i--] = null; |
---|
| 39 | } |
---|
| 40 | } |
---|
| 41 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.