Fixed undefined label in permission adder dialog box.

The IPA.rights_widget was fixed to invoke the base init() method
to load the i18n labels properly.

Ticket 1113
This commit is contained in:
Endi S. Dewata
2011-03-21 12:35:12 -05:00
committed by Adam Young
parent e7fda0652d
commit cb5e709e7d

View File

@@ -181,6 +181,9 @@ IPA.rights_widget = function(spec) {
that.rights = ['write', 'add', 'delete'];
that.init = function() {
that.widget_init();
for (var i=0; i<that.rights.length; i++) {
var right = that.rights[i];
that.add_option({label: right, value: right});