Author: david
Date: Tue Aug 30 10:05:18 2011
New Revision: 9625

Log:
Hook up dialog submit functionality

Modified:
   trunk/apps/qubit/modules/repository/templates/_uploadLimit.php

Modified: trunk/apps/qubit/modules/repository/templates/_uploadLimit.php
==============================================================================
--- trunk/apps/qubit/modules/repository/templates/_uploadLimit.php      Tue Aug 
30 09:58:23 2011        (r9624)
+++ trunk/apps/qubit/modules/repository/templates/_uploadLimit.php      Tue Aug 
30 10:05:18 2011        (r9625)
@@ -28,14 +28,14 @@
 
 </div>
 
-<!-- Edit uploadLimit form -->
+<!-- Edit upload limit -->
 <!-- NOTE YUI dialog wraps this *entire* div -->
 <div class="section" id="editUploadLimit">
   <div class="hd"><?php echo __('Edit upload quota') ?></div>
 
   <div class="bd form-item-uploadLimit">
 
-    <form id="uploadLimitForm" method="_POST" action="<?php echo 
url_for(array($resource, 'module' => 'repository', 'action' => 
'editUploadLimit')) ?>">
+    <form id="uploadLimitForm" method="POST" action="<?php echo 
url_for(array($resource, 'module' => 'repository', 'action' => 
'editUploadLimit')) ?>">
 
       <fieldset name="uploadLimit">
         <label for="uploadLimit_type"><?php echo __('Set the upload quota for 
this %1%', array('%1%' => 
strtolower(sfConfig::get('app_ui_label_repository')))) ?></label>
@@ -69,16 +69,17 @@
         {
           // Define various event handlers for Dialog
           var handleSubmit = function() {
-            // Do submit
+            this.submit();
           };
           var handleCancel = function() {
             this.cancel();
           };
           var handleSuccess = function(o) {
             // var response = o.responseText;
+            alert('Success!');
           };
           var handleFailure = function(o) {
-            // Failure!
+            alert('The Fail!');
           };
 
           // Instantiate the Dialog

-- 
You received this message because you are subscribed to the Google Groups 
"Qubit Toolkit Commits" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/qubit-commits?hl=en.

Reply via email to