mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-11-18 09:53:56 +01:00
* Added a simple box to display the current resource usage (see #105)
* Cleanup (see #204) * Fixed javascript issues
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#searchform {
|
||||
text-align: center;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
}
|
||||
|
||||
+4
-1
@@ -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
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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);
|
||||
Reference in New Issue
Block a user