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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt (+8 lines)
Lines 107-112 $(document).ready(function(){ Link Here
107
        var surname = $(this).data("surname");
107
        var surname = $(this).data("surname");
108
        add_user( borrowernumber, firstname + " " + surname );
108
        add_user( borrowernumber, firstname + " " + surname );
109
    });
109
    });
110
111
    $("body").on("click",".select_user",function(e){
112
        e.preventDefault();
113
        var borrowernumber = $(this).data("borrowernumber");
114
        var guarantor_data = $("#guarantor_data"+borrowernumber).val();
115
        select_user( borrowernumber, JSON.parse(guarantor_data) );
116
    });
117
110
});
118
});
111
119
112
function filter() {
120
function filter() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt (-1 / +1 lines)
Lines 17-23 Link Here
17
                "dt_address":
17
                "dt_address":
18
                    "[% INCLUDE escape_address data=data %]",
18
                    "[% INCLUDE escape_address data=data %]",
19
                "dt_action":
19
                "dt_action":
20
                    "<a style='cursor:pointer' onclick='select_user(\"[% data.borrowernumber %]\", [% To.json(data) | html %] );'>Select</a>"
20
                    "<a href=\"#\" class=\"btn btn-mini select_user\" data-borrowernumber=\"[% data.borrowernumber %]\">Select</a><input type=\"hidden\" id=\"guarantor_data[% data.borrowernumber %]\" name=\"guarantor_data\" value=\"[% To.json(data) | html %]\" />"
21
            }[% UNLESS loop.last %],[% END %]
21
            }[% UNLESS loop.last %],[% END %]
22
        [% END %]
22
        [% END %]
23
    ]
23
    ]
(-)a/koha-tmpl/intranet-tmpl/prog/js/members.js (-2 / +1 lines)
Lines 143-149 function Dopop(link) { Link Here
143
}
143
}
144
144
145
function Dopopguarantor(link) {
145
function Dopopguarantor(link) {
146
    var newin=window.open(link,'popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top');
146
    var newin=window.open(link,'popup','width=800,height=500,resizable=no,toolbar=false,scrollbars=yes,top');
147
}
147
}
148
148
149
function clear_entry(node) {
149
function clear_entry(node) {
150
- 

Return to bug 16450