mirror of
https://github.com/jwinterm/modoboa.git
synced 2026-10-23 06:38:40 +02:00
Fixed broken code (was not working since the last big refactoring I did in the admin code).
fix #133
This commit is contained in:
+26
-26
@@ -215,34 +215,34 @@ function HashWrapper(deflocation) {
|
||||
};
|
||||
};
|
||||
|
||||
parse_menubar = function(id) {
|
||||
if ($(id)) {
|
||||
$(id).getElements('li.dropdown').each(function(elem){
|
||||
var list = elem.getElement('ul.links');
|
||||
var myFx = new Fx.Slide(list, {
|
||||
duration: 200
|
||||
});
|
||||
function parse_menubar(id) {
|
||||
if ($(id)) {
|
||||
$(id).getElements('li.dropdown').each(function(elem){
|
||||
var list = elem.getElement('ul.links');
|
||||
var myFx = new Fx.Slide(list, {
|
||||
duration: 200
|
||||
});
|
||||
|
||||
myFx.wrapper.setStyles({
|
||||
"position" : "absolute"
|
||||
});
|
||||
myFx.hide();
|
||||
myFx.wrapper.setStyles({
|
||||
"position" : "absolute"
|
||||
});
|
||||
myFx.hide();
|
||||
|
||||
elem.addEvents({
|
||||
'mouseenter' : function(evt) {
|
||||
myFx.cancel();
|
||||
myFx.slideIn();
|
||||
},
|
||||
'mouseleave' : function() {
|
||||
myFx.cancel();
|
||||
myFx.slideOut();
|
||||
}
|
||||
});
|
||||
});
|
||||
SqueezeBox.assign($(id).getElements('a[class=boxed]'), {
|
||||
parse: 'rel'
|
||||
});
|
||||
}
|
||||
elem.addEvents({
|
||||
'mouseenter' : function(evt) {
|
||||
myFx.cancel();
|
||||
myFx.slideIn();
|
||||
},
|
||||
'mouseleave' : function() {
|
||||
myFx.cancel();
|
||||
myFx.slideOut();
|
||||
}
|
||||
});
|
||||
});
|
||||
SqueezeBox.assign($(id).getElements('a[class=boxed]'), {
|
||||
parse: 'rel'
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
get_iframe_body = function(id) {
|
||||
|
||||
+7
-2
@@ -64,8 +64,13 @@ function ajax_submit(event) {
|
||||
}
|
||||
} else {
|
||||
if ($defined(response.respmsg)) {
|
||||
parent.current_anchor.loading_message = response.respmsg;
|
||||
parent.current_anchor.loading_color = "green";
|
||||
if ($defined(parent.current_anchor)) {
|
||||
parent.current_anchor.loading_message = response.respmsg;
|
||||
parent.current_anchor.loading_color = "green";
|
||||
} else {
|
||||
parent.infobox.info(response.respmsg);
|
||||
parent.infobox.hide(1);
|
||||
}
|
||||
}
|
||||
if ($defined(response.ajaxnav)) {
|
||||
if ($defined(response.url)) {
|
||||
|
||||
Reference in New Issue
Block a user