Move entry-edit javascript out of architect theme

This commit is contained in:
Deon George 2025-04-06 22:40:03 +10:00
parent ffa8cdc826
commit 855d7ae75c
2 changed files with 10 additions and 16 deletions

View File

@ -18,18 +18,3 @@
</div> </div>
</div> </div>
</div> </div>
@section('page-scripts')
<script type="text/javascript">
$(document).ready(function() {
$('button[id=entry-edit]').on('click',function(item) {
item.preventDefault();
if ($(this).hasClass('btn-dark'))
return;
editmode();
});
});
</script>
@append

View File

@ -210,6 +210,15 @@
} }
$(document).ready(function() { $(document).ready(function() {
$('button[id=entry-edit]').on('click',function(item) {
item.preventDefault();
if ($(this).hasClass('btn-dark'))
return;
editmode();
});
$('#newattr').on('change',function(item) { $('#newattr').on('change',function(item) {
$.ajax({ $.ajax({
type: 'POST', type: 'POST',