Lines 782-788
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
782 |
name: macro.name, |
782 |
name: macro.name, |
783 |
patron_id: [% logged_in_user.borrowernumber | html %], |
783 |
patron_id: [% logged_in_user.borrowernumber | html %], |
784 |
macro_text: macro.contents, |
784 |
macro_text: macro.contents, |
785 |
shared: 0 |
785 |
shared: false |
786 |
}) |
786 |
}) |
787 |
}; |
787 |
}; |
788 |
$.ajax(options) |
788 |
$.ajax(options) |
Lines 846-852
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
846 |
name: name, |
846 |
name: name, |
847 |
patron_id: [% logged_in_user.borrowernumber | html %], |
847 |
patron_id: [% logged_in_user.borrowernumber | html %], |
848 |
macro_text: "", |
848 |
macro_text: "", |
849 |
shared: 0 |
849 |
shared: false |
850 |
}) |
850 |
}) |
851 |
}; |
851 |
}; |
852 |
$.ajax(options) |
852 |
$.ajax(options) |
Lines 897-905
require( [ 'koha-backend', 'search', 'macros', 'marc-editor', 'marc-record', 'pr
Link Here
|
897 |
|
897 |
|
898 |
$(".macro_shared").change(function(){ |
898 |
$(".macro_shared").change(function(){ |
899 |
if(this.checked){ |
899 |
if(this.checked){ |
900 |
saveMacro(1); |
900 |
saveMacro(true); |
901 |
} else { |
901 |
} else { |
902 |
saveMacro(0); |
902 |
saveMacro(false); |
903 |
} |
903 |
} |
904 |
}); |
904 |
}); |
905 |
|
905 |
|
906 |
- |
|
|