Lines 14-41
Link Here
|
14 |
|
14 |
|
15 |
function yuiToolbar() { |
15 |
function yuiToolbar() { |
16 |
|
16 |
|
17 |
var newmenu = [ |
17 |
[% IF ( CAN_user_editauthorities ) %] |
18 |
[% FOREACH authtypesloo IN authtypesloop %]{ text: "[% authtypesloo.authtypetext %]", url: "/cgi-bin/koha/authorities/authorities.pl?authtypecode=[% authtypesloo.value %]"}, |
18 |
var newmenu = [ |
19 |
[% END %] |
19 |
[% FOREACH authtypesloo IN authtypesloop %]{ text: "[% authtypesloo.authtypetext %]", url: "/cgi-bin/koha/authorities/authorities.pl?authtypecode=[% authtypesloo.value %]"}, |
20 |
] |
20 |
[% END %] |
|
|
21 |
] |
22 |
new YAHOO.widget.Button({ |
23 |
type: "menu", |
24 |
label: _("New Authority"), |
25 |
name: "newmenubutton", |
26 |
menu: newmenu, |
27 |
container: "newmenuc" |
28 |
}); |
29 |
|
30 |
var editButton = new YAHOO.widget.Button("editAuth"); |
21 |
|
31 |
|
22 |
new YAHOO.widget.Button({ |
32 |
var delAuthButton = new YAHOO.widget.Button({ |
23 |
type: "menu", |
33 |
id: "delAuth", |
24 |
label: _("New Authority"), |
34 |
type: "button", |
25 |
name: "newmenubutton", |
35 |
label: _("Delete"), |
26 |
menu: newmenu, |
36 |
container: "delAuthc", |
27 |
container: "newmenuc" |
37 |
onclick: {fn: confirm_deletion } |
28 |
}); |
38 |
}); |
29 |
|
39 |
[% END %] |
30 |
var editButton = new YAHOO.widget.Button("editAuth"); |
|
|
31 |
|
32 |
var delAuthButton = new YAHOO.widget.Button({ |
33 |
id: "delAuth", |
34 |
type: "button", |
35 |
label: _("Delete"), |
36 |
container: "delAuthc", |
37 |
onclick: {fn: confirm_deletion } |
38 |
}); |
39 |
} |
40 |
} |
40 |
|
41 |
|
41 |
//]]> |
42 |
//]]> |
42 |
- |
|
|