From a746c613a4fb3d0eed5c73455ebb2e674ed7793d Mon Sep 17 00:00:00 2001 From: Adam Young Date: Fri, 8 Jul 2011 12:06:30 -0400 Subject: dnsrecord-mod ui Brings the DNS record infrastructure in line with the other entities. Uses widgets, nested search, and a littel bit of overloading for dns specific behavior The records now have their own page. simplified link widget and use for dns links work for nested entities. change the field in the link widget to other_entity to avoid name collision. unit test for entity link. fixed reference to entity for getting pkeys work around lack of setattr for dns record mod. update wasn't deducing locked_field type correctly. don't overwrite param_info in init data is required on adder dialog delete works for multiple records use show instead of find for entity_link_widget. https://fedorahosted.org/freeipa/ticket/1038 https://fedorahosted.org/freeipa/ticket/1448 https://fedorahosted.org/freeipa/ticket/577 https://fedorahosted.org/freeipa/ticket/1460 --- install/ui/user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'install/ui/user.js') diff --git a/install/ui/user.js b/install/ui/user.js index fb43916f..07fe7fbd 100644 --- a/install/ui/user.js +++ b/install/ui/user.js @@ -203,8 +203,9 @@ IPA.user_status_widget = function(spec) { var locked_field = that.record[lock_field]; var locked = false; - if (typeof locked_field === 'array') locked_field = locked_field[0]; - + if (locked_field instanceof Array) { + locked_field = locked_field[0]; + } if (typeof locked_field === 'boolean') { locked = locked_field; } else { -- cgit