oqs back turbolink control

This commit is contained in:
Yan
2017-11-17 16:39:37 +06:30
parent 11f040b142
commit c56fb1b0f4
3 changed files with 10 additions and 5 deletions

View File

@@ -25,10 +25,6 @@
//= require custom.js //= require custom.js
$(document).on('turbolinks:load', function() { $(document).on('turbolinks:load', function() {
$('#back').on('click', function () {
window.location.href = '/oqs/';
});
$(".nav-completed").on("click", function(){ $(".nav-completed").on("click", function(){
$("#completed").removeClass('hide') $("#completed").removeClass('hide')
$(".oqs_append").addClass('hide') $(".oqs_append").addClass('hide')

View File

@@ -115,8 +115,9 @@ $(document).ready(function(){
} }
}); });
}); });
$('#back').on('click', function () { $('#back').on('click', function () {
window.location.href = '/oqs/'; window.location.href = '/oqs';
}) })
// number key pad // number key pad

View File

@@ -177,3 +177,11 @@
<!-- <button type="button" class="" id="print_order_summary">Print <br/>Order<br/>Summary</button> --> <!-- <button type="button" class="" id="print_order_summary">Print <br/>Order<br/>Summary</button> -->
</div> </div>
</div> </div>
<script type="text/javascript">
$(document).on('turbolinks:load', function() {
$('#back').on('click', function () {
window.location.href = '/dashboard';
});
});
</script>