[jboss-cvs] jboss-seam/examples/wiki/view/includes ...

Christian Bauer christian at hibernate.org
Fri Aug 31 13:50:55 EDT 2007


  User: cbauer  
  Date: 07/08/31 13:50:55

  Modified:    examples/wiki/view/includes  deleteConfirmation.xhtml
  Log:
  Ctrl-O should not delete the node
  
  Revision  Changes    Path
  1.7       +17 -5     jboss-seam/examples/wiki/view/includes/deleteConfirmation.xhtml
  
  (In the diff below, changes in quantity of whitespace are not shown.)
  
  Index: deleteConfirmation.xhtml
  ===================================================================
  RCS file: /cvsroot/jboss/jboss-seam/examples/wiki/view/includes/deleteConfirmation.xhtml,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -b -r1.6 -r1.7
  --- deleteConfirmation.xhtml	17 Aug 2007 13:00:25 -0000	1.6
  +++ deleteConfirmation.xhtml	31 Aug 2007 17:50:55 -0000	1.7
  @@ -9,22 +9,34 @@
   
       <ui:param  name="dialogId" value="dialogDelete"/>
       <ui:define name="dialogInit">
  -        <script type="text/javascript">jQuery(function() {
  +        <script type="text/javascript">
  +
  +        var fadeInDeleteDialog = function(hash) {
  +            jQuery("#deleteDialog\\:delete", hash.w).attr("accesskey", "O");
  +            fadeInPopupDialog(hash);
  +        };
  +
  +        var fadeOutDeleteDialog = function(hash) {
  +            jQuery("#deleteDialog\\:delete", hash.w).attr("accesskey", "");
  +            fadeOutPopupDialog(hash);
  +        };
  +
  +        jQuery(function() {
               jsf('dialogDeletePopup')
                   .css({ minWidth: "200px", minHeight: "150px", width: "300px;", height: "150px;", top: "150px", left: "300px"})
                   .jqm({
                       trigger: jsf("openDialogDelete"),
                       closeClass: "closeDialog",
  -                    onShow: fadeInPopupDialog,
  -                    onHide: fadeOutPopupDialog
  +                    onShow: fadeInDeleteDialog,
  +                    onHide: fadeOutDeleteDialog
                   });
           });</script>
       </ui:define>
       <ui:define name="dialogTitle">Delete confirmation</ui:define>
       <ui:define name="dialogContent"><p align="center">Are you sure you want to delete <br/>'#{home.instance}'?</p></ui:define>
       <ui:define name="dialogControls">
  -        <h:form style="display:inline">
  -            <a:commandLink id="delete" action="#{home.remove}" accesskey="O" styleClass="button" reRender="#{reRender}">
  +        <h:form style="display:inline" id="deleteDialog">
  +            <a:commandLink id="delete" action="#{home.remove}" styleClass="button" reRender="#{reRender}">
                   <span class="buttonLabel"><u>O</u>k</span>
               </a:commandLink>
           </h:form>
  
  
  



More information about the jboss-cvs-commits mailing list