/***************************************************************************
- * Copyright (C) 2003-2011 Polytechnique.org *
+ * Copyright (C) 2003-2014 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
return this.overlib({
text: text,
- caption: this.attr('title') || goodies.default_title,
+ caption: this.attr('title') || goodies[type].default_title,
close_text: 'Fermer',
delay: 800,
sticky: true,
}
if ((!href.contains(fqdn) && !this.className.contains('popup')) || node.hasClass('popup')) {
node.click(function () {
- window.open(this.href);
+ window.open($.plURL(this.href));
return false;
});
}
popWin: function(w, h) {
return this.click(function() {
- window.open(this.href, '_blank',
+ window.open($.plURL(this.href), '_blank',
'toolbar=0,location=0,directories=0,status=0,'
+'menubar=0,scrollbars=1,resizable=1,'
+'width='+w+',height='+h);
break;
case 'admin':
$(this).attr('href', 'admin/user/' + profile.hrpid)
- .click(function() { window.open($(this).attr('href')); return false });
+ .click(function() { window.open($.plURL(this.href)); return false });
break;
}
}
});
});
-// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
+// vim:set et sw=4 sts=4 sws=4 foldmethod=marker fenc=utf-8: