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

(-)a/koha-tmpl/intranet-tmpl/prog/en/js/members.js (-2 / +1 lines)
Lines 143-150 function Dopop(link) { Link Here
143
}
143
}
144
144
145
function Dopopguarantor(link) {
145
function Dopopguarantor(link) {
146
146
    var newin=window.open(link,'popup','width=800,height=500,resizable=no,toolbar=false,scrollbars=yes,top');
147
    var newin=window.open(link,'popup','width=600,height=400,resizable=no,toolbar=false,scrollbars=yes,top');
148
}
147
}
149
148
150
$(document).ready(function(){
149
$(document).ready(function(){
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/common/patron_search.tt (+8 lines)
Lines 100-105 $(document).ready(function(){ Link Here
100
        e.preventDefault();
100
        e.preventDefault();
101
        filterByFirstLetterSurname($(this).text());
101
        filterByFirstLetterSurname($(this).text());
102
    });
102
    });
103
104
    $("body").on("click",".select_user",function(e){
105
        e.preventDefault();
106
        var borrowernumber = $(this).data("borrowernumber");
107
        var guarantor_data = $("#guarantor_data"+borrowernumber).val();
108
        select_user( borrowernumber, JSON.parse(guarantor_data) );
109
    });
110
103
});
111
});
104
112
105
function filter() {
113
function filter() {
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/tables/guarantor_search.tt (-2 / +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
    ]
24
- 

Return to bug 16450