* Added a simple box to display the current resource usage (see #105)

* Cleanup (see #204)
* Fixed javascript issues
This commit is contained in:
Antoine Nguyen
2012-04-11 15:07:04 +02:00
parent 303c84eb64
commit 13c699e855
27 changed files with 106 additions and 323 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
#searchform {
text-align: center;
margin-bottom: 10px;
}
}
+4 -1
View File
@@ -3,6 +3,7 @@ function domainform_cb() {
$("#id_aliases").dynamic_input();
$(".submit").one('click', function(e) {
simple_ajax_form_post(e, {
formid: "domform",
error_cb: domainform_cb
});
});
@@ -24,13 +25,14 @@ function accountform_init() {
function newaccount_cb() {
$('input:text:visible:first').focus();
accountform_init();
$("#wizard").cwizard();
$("#wizard").cwizard({formid: "newaccount_form"});
}
function editaccount_cb() {
accountform_init();
$('.submit').one('click', function(e) {
simple_ajax_form_post(e, {
formid: "accountform",
error_cb: editaccount_cb
});
});
@@ -44,6 +46,7 @@ function dlistform_cb() {
$("#id_recipients").dynamic_input();
$(".submit").one('click', function(e) {
simple_ajax_form_post(e, {
formid: "dlistform",
error_cb: dlistform_cb
});
});
+6 -1
View File
@@ -1,6 +1,7 @@
(function($) {
var Cwizard = function(element, options) {
this.$element = $(element);
this.options = $.extend({}, $.fn.cwizard.defaults, options);
this.$element.carousel({pause: true});
this.$element.carousel("pause");
this.setcallbacks();
@@ -16,7 +17,7 @@
},
post: function(last) {
var $form = $('form');
var $form = (this.options.formid) ? $('#' + this.options.formid) : $('form');
var data = $form.serialize() + "&stepid=" + $(".item.active").attr("id");
$.post($form.attr("action"), data, $.proxy(function(resp) {
@@ -79,4 +80,8 @@
});
};
$.fn.cwizard.defaults = {
};
})(jQuery);