add $cfg['UserprefsDisallow'] and allow setting it in setup script

correct IE opacity issue for "restore default value" button
fix regressions introduced in previous commit
This commit is contained in:
Crack
2010-06-21 19:12:25 +02:00
parent d09c35f5a8
commit e5238f3845
8 changed files with 133 additions and 25 deletions

View File

@@ -168,3 +168,25 @@ function ajaxValidate(parent, id, values) {
return true;
}
//
// END: Form validation and field operations
// ------------------------------------------------------------------
// ------------------------------------------------------------------
// User preferences allow/disallow UI
//
$(function() {
$('.userprefs-allow').click(function(e) {
if (this != e.target) {
return;
}
var el = $(this).find('input');
el.attr('checked', !el.attr('checked'));
});
});
//
// END: User preferences allow/disallow UI
// ------------------------------------------------------------------