Fixed broken code (was not working since the last big refactoring I did in the admin code).

fix #133
This commit is contained in:
Antoine Nguyen
2011-04-15 15:28:44 +02:00
parent 182e1c2ea3
commit 6d397aabe0
4 changed files with 41 additions and 35 deletions
+26 -26
View File
@@ -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
View File
@@ -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)) {