View | Details | Raw Unified | Return to bug 12451
Collapse All | Expand All

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/smart-rules.tt (-2 / +3 lines)
Lines 42-48 $(document).ready(function() { Link Here
42
                    $(current_column).find("input[type='text']").val(itm);
42
                    $(current_column).find("input[type='text']").val(itm);
43
                    // select the corresponding option
43
                    // select the corresponding option
44
                    $(current_column).find("select option").each(function(){
44
                    $(current_column).find("select option").each(function(){
45
                        if ( $(this).text().toLowerCase() == itm.toLowerCase() ) {
45
                        opt = $(this).text().toLowerCase();
46
                        opt = opt.replace(/^\s*|\s*$/g,'');
47
                        if ( opt == itm.toLowerCase() ) {
46
                            $(this).attr('selected', 'selected');
48
                            $(this).attr('selected', 'selected');
47
                        }
49
                        }
48
                    });
50
                    });
49
- 

Return to bug 12451