mirror of
https://github.com/itsdave-de/msp_remoteadmin.git
synced 2025-12-18 00:43:08 -03:00
fix variable names
This commit is contained in:
@@ -1,16 +1,14 @@
|
|||||||
frappe.ui.form.on('IT Object', {
|
frappe.ui.form.on('IT Object', {
|
||||||
refresh: function (frm) {
|
refresh: function (frm) {
|
||||||
// Verifica se todos os campos necess<73>rios est<73>o preenchidos
|
|
||||||
if (frm.doc.link) {
|
if (frm.doc.link) {
|
||||||
// Adiciona o bot<6F>o "Connect"
|
frm.add_custom_button(__('Connect'), null, 'btn-rdp', null, 'btn-ssh');
|
||||||
frm.add_custom_button(__('Connect'), null, 'btn-default', null, 'btn-connect');
|
|
||||||
frm.page.add_menu_item(__('RDP'), function () {
|
frm.page.add_menu_item(__('RDP'), function () {
|
||||||
connect_remote(frm, 'RDP');
|
connect_remote(frm, 'RDP');
|
||||||
}, 'btn-connect');
|
}, 'btn-rdp');
|
||||||
|
|
||||||
frm.page.add_menu_item(__('SSH'), function () {
|
frm.page.add_menu_item(__('SSH'), function () {
|
||||||
connect_remote(frm, 'SSH');
|
connect_remote(frm, 'SSH');
|
||||||
}, 'btn-connect');
|
}, 'btn-ssh');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user