Move entry-edit javascript out of architect theme
This commit is contained in:
parent
ffa8cdc826
commit
855d7ae75c
@ -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
|
|
@ -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',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user