|
38 | 38 | collapseAllRowsForSelectList();
|
39 | 39 | flagRows();
|
40 | 40 | }
|
41 |
| - window.onload = flagFolders; |
| 41 | + function initPage() |
| 42 | + { |
| 43 | + var poolSubmitButton = document.getElementById('copyPool:copypoolsubmit'); |
| 44 | + if (poolSubmitButton !== null) |
| 45 | + { |
| 46 | + poolSubmitButton.disabled=true; |
| 47 | + } |
| 48 | + var itemSubmitButton = document.getElementById('copyPool:copyitemsubmit'); |
| 49 | + if (itemSubmitButton !== null) |
| 50 | + { |
| 51 | + itemSubmitButton.disabled=true; |
| 52 | + } |
| 53 | + flagFolders(); |
| 54 | + } |
| 55 | + window.onload = initPage; |
42 | 56 | </script>
|
| 57 | +<script src="/library/js/spinner.js" type="text/javascript"></script> |
43 | 58 | </head>
|
44 | 59 | <body onload="collapseAllRowsForSelectList();flagRows();;<%= request.getAttribute("html.body.onload") %>">
|
45 | 60 | <!-- content... -->
|
|
88 | 103 | <p class="act">
|
89 | 104 |
|
90 | 105 | <h:commandButton id="copypoolsubmit" immediate="true" value="#{questionPoolMessages.copy}"
|
91 |
| - action="#{questionpool.copyPool}" styleClass="active" rendered="#{questionpool.actionType == 'pool'}"> |
| 106 | + action="#{questionpool.copyPool}" styleClass="active" rendered="#{questionpool.actionType == 'pool'}" |
| 107 | + onclick="SPNR.disableControlsAndSpin(this, null);"> |
92 | 108 | </h:commandButton>
|
93 | 109 |
|
94 | 110 | <h:commandButton id="copyitemsubmit" immediate="true" value="#{questionPoolMessages.copy}"
|
95 |
| - action="#{questionpool.copyQuestion}" styleClass="active" rendered="#{questionpool.actionType == 'item'}"> |
| 111 | + action="#{questionpool.copyQuestion}" styleClass="active" rendered="#{questionpool.actionType == 'item'}" |
| 112 | + onclick="SPNR.disableControlsAndSpin(this, null);"> |
96 | 113 | </h:commandButton>
|
97 | 114 |
|
98 |
| - <h:commandButton id="cancel" value="#{commonMessages.cancel_action}" action="#{questionpool.cancelPool}" immediate="true" rendered="#{questionpool.actionType == 'pool'}"> |
| 115 | + <h:commandButton id="cancel" value="#{commonMessages.cancel_action}" action="#{questionpool.cancelPool}" immediate="true" |
| 116 | + rendered="#{questionpool.actionType == 'pool'}" onclick="SPNR.disableControlsAndSpin(this, null);"> |
99 | 117 | <f:actionListener type="org.sakaiproject.tool.assessment.ui.listener.questionpool.CancelPoolListener" />
|
100 | 118 | <f:attribute name="returnToParentPool" value="true"/>
|
101 | 119 | </h:commandButton>
|
102 | 120 |
|
103 |
| - <h:commandButton id="cancelItem" value="#{commonMessages.cancel_action}" action="#{questionpool.cancelPool}" immediate="true" rendered="#{questionpool.actionType == 'item'}"> |
| 121 | + <h:commandButton id="cancelItem" value="#{commonMessages.cancel_action}" action="#{questionpool.cancelPool}" immediate="true" |
| 122 | + rendered="#{questionpool.actionType == 'item'}" onclick="SPNR.disableControlsAndSpin(this, null);"> |
104 | 123 | <f:actionListener type="org.sakaiproject.tool.assessment.ui.listener.questionpool.CancelPoolListener" />
|
105 | 124 | <f:attribute name="returnToParentPool" value="false"/>
|
106 | 125 | </h:commandButton>
|
|
0 commit comments