Index: trunk/grails-app/views/inventoryItemDetailed/show.gsp
===================================================================
--- trunk/grails-app/views/inventoryItemDetailed/show.gsp	(revision 450)
+++ trunk/grails-app/views/inventoryItemDetailed/show.gsp	(revision 453)
@@ -53,42 +53,49 @@
                         <g:if test="${inventoryMovementInstance}" >
 
-                            <g:form controller="inventoryItemDetailed" method="post" >
-                                <div class="dialog">
-                                    <table>
-                                        <tbody>
-                                                <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}"/>
-                                                <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}"/>
-                                                <tr class="prop">
-                                                    <td valign="top" class="name">Use on task:</td>
-                                                    <td valign="top" class="value">
-                                                        <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" >
-                                                            ${Task.get(inventoryMovementInstance.task.id).encodeAsHTML()}
-                                                        </g:link>
-                                                    </td>
-                                                </tr>
-
-                                                <tr class="prop">
-                                                    <td valign="top" class="name">
-                                                        <label for="quantity">Quantity:</label>
-                                                    </td>
-                                                    <td valign="top">
-                                                        <input class="medium ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"
-                                                                    type="text" id="quantity" name="quantity"
-                                                                    value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/>
-                                                        ${inventoryItemInstance.unitOfMeasure?.encodeAsHTML()}
-
-                                                        <span class="buttons">
-                                                            <g:actionSubmit action="useInventoryItem" class="save" value="${InventoryMovementType.get(1)}" />
-                                                        </span>
-
-                                                    </td>
-                                                </tr>
-
-                                        </tbody>
-                                    </table>
+                            <div id="useInventoryItemDiv" style="display:inline"> <!-- inline required for IE -->
+                                <div class="pane_close" >
+                                    <g:remoteLink action="clearUseInventoryItem" update="useInventoryItemDiv">
+                                        <img  src="${resource(dir:'images/skin',file:'cross.png')}" alt="Clear" title="Clear"/>
+                                    </g:remoteLink>
                                 </div>
-                            </g:form>
-
-                            <br />
+                                <g:form controller="inventoryItemDetailed" method="post" >
+                                    <div class="dialog">
+                                        <table>
+                                            <tbody>
+                                                    <g:hiddenField name="task.id" value="${inventoryMovementInstance.task.id}"/>
+                                                    <g:hiddenField name="inventoryItem.id" value="${inventoryItemInstance.id}"/>
+                                                    <tr class="prop">
+                                                        <td valign="top" class="name">Use on task:</td>
+                                                        <td valign="top" class="value">
+                                                            <g:link controller="taskDetailed" action="show" id="${inventoryMovementInstance.task.id}" >
+                                                                ${Task.get(inventoryMovementInstance.task.id).encodeAsHTML()}
+                                                            </g:link>
+                                                        </td>
+                                                    </tr>
+
+                                                    <tr class="prop">
+                                                        <td valign="top" class="name">
+                                                            <label for="quantity">Quantity:</label>
+                                                        </td>
+                                                        <td valign="top">
+                                                            <input class="medium ${hasErrors(bean:inventoryMovementInstance,field:'quantity','errors')}"
+                                                                        type="text" id="quantity" name="quantity"
+                                                                        value="${fieldValue(bean:inventoryMovementInstance,field:'quantity')}"/>
+                                                            ${inventoryItemInstance.unitOfMeasure?.encodeAsHTML()}
+
+                                                            <span class="buttons">
+                                                                <g:actionSubmit action="useInventoryItem" class="save" value="${InventoryMovementType.read(1)}" />
+                                                            </span>
+
+                                                        </td>
+                                                    </tr>
+
+                                            </tbody>
+                                        </table>
+                                    </div>
+                                </g:form>
+
+                                <br />
+                            </div>
 
                         </g:if>
