test for turbolink
This commit is contained in:
@@ -11,8 +11,8 @@
|
||||
<link rel="icon" href="favicon.ico" type="image/x-icon">
|
||||
|
||||
<!-- Google Fonts -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css">
|
||||
<!-- <link href="https://fonts.googleapis.com/css?family=Roboto:400,700&subset=latin,cyrillic-ext" rel="stylesheet" type="text/css">
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" type="text/css"> -->
|
||||
|
||||
<!-- Bootstrap Core Css -->
|
||||
<!-- <link href="plugins/bootstrap/css/bootstrap.css" rel="stylesheet"> -->
|
||||
@@ -101,9 +101,10 @@
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
$(document).on('turbolinks:load', function () {
|
||||
$("#login_form_password").focus();
|
||||
|
||||
$(".pin_pad").click(function (event) {
|
||||
event.preventDefault();
|
||||
console.log($(this).data("value"));
|
||||
event.preventDefault();
|
||||
var value = $(this).data("value");
|
||||
|
||||
if (value == "CLR") {
|
||||
|
||||
@@ -39,9 +39,7 @@
|
||||
</div>
|
||||
</div>
|
||||
<% flash.each do |type, message| %>
|
||||
<% puts type
|
||||
puts message
|
||||
puts "ssssssssssssss"
|
||||
<%
|
||||
if type == "notice"
|
||||
color = "alert-success"
|
||||
elsif type == "error"
|
||||
@@ -167,8 +165,7 @@
|
||||
var animateExit = $("#noti").attr('data-animate-exit');
|
||||
var colorName = $("#noti").attr('data-color-name');
|
||||
var text = $("#noti").attr('data-message');
|
||||
console.log(text);
|
||||
console.log(colorName);
|
||||
|
||||
if (text != null || colorName != null){
|
||||
showNotification(colorName, text, placementFrom, placementAlign, animateEnter, animateExit);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user