Skip to content

Commit 855d7ae

Browse files
committed
Move entry-edit javascript out of architect theme
1 parent ffa8cdc commit 855d7ae

File tree

2 files changed

+10
-16
lines changed

2 files changed

+10
-16
lines changed

resources/themes/architect/views/layouts/partials/contentheader.blade.php

Lines changed: 1 addition & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,19 +17,4 @@
1717
@yield('page_actions')
1818
</div>
1919
</div>
20-
</div>
21-
22-
@section('page-scripts')
23-
<script type="text/javascript">
24-
$(document).ready(function() {
25-
$('button[id=entry-edit]').on('click',function(item) {
26-
item.preventDefault();
27-
28-
if ($(this).hasClass('btn-dark'))
29-
return;
30-
31-
editmode();
32-
});
33-
});
34-
</script>
35-
@append
20+
</div>

resources/views/frames/dn.blade.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -210,6 +210,15 @@ function editmode() {
210210
}
211211
212212
$(document).ready(function() {
213+
$('button[id=entry-edit]').on('click',function(item) {
214+
item.preventDefault();
215+
216+
if ($(this).hasClass('btn-dark'))
217+
return;
218+
219+
editmode();
220+
});
221+
213222
$('#newattr').on('change',function(item) {
214223
$.ajax({
215224
type: 'POST',

0 commit comments

Comments
 (0)