1

Tweaks to dialog

This commit is contained in:
Alex Yatskov 2015-03-09 23:14:04 +09:00
parent ad58384adf
commit 276eb9d975
3 changed files with 3 additions and 15 deletions

View File

@ -18,8 +18,8 @@
<div class="modal-content"> <div class="modal-content">
<div class="model-header"> <div class="model-header">
<div class="modal-header"> <div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button> <button type="button" class="close" data-dismiss="modal">&times;</button>
<h3>Profile</h3> <h4 class="modal-title">Profile</h4>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<iframe src="/profile.html" width="100%" height="250" frameborder="0"></iframe> <iframe src="/profile.html" width="100%" height="250" frameborder="0"></iframe>

View File

@ -7,11 +7,6 @@
</head> </head>
<body> <body>
<div class="container"> <div class="container">
<!-- busy spinner -->
<div class="page-header">
<h1><img id="spinner" alt="loading" class="pull-right" src="images/spinner.gif" style="display: none;" width="32" height="32">Search Profile</h1>
</div>
<!-- categories --> <!-- categories -->
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@ -48,7 +43,6 @@
<button class="btn btn-primary" id="addCategory"><span class="glyphicon glyphicon-plus"></span></button> <button class="btn btn-primary" id="addCategory"><span class="glyphicon glyphicon-plus"></span></button>
</span> </span>
</div> </div>
</div> </div>
<script src="bower_components/jquery/dist/jquery.js"></script> <script src="bower_components/jquery/dist/jquery.js"></script>

View File

@ -78,7 +78,7 @@
}); });
} }
function onReady() { $(document).ready(function() {
Handlebars.registerHelper('checkMatch', function(value, options) { Handlebars.registerHelper('checkMatch', function(value, options) {
return new Handlebars.SafeString(value == this.value ? 'checked' : ''); return new Handlebars.SafeString(value == this.value ? 'checked' : '');
}); });
@ -88,11 +88,5 @@
$('#addCategory').click(function() { $('#addCategory').click(function() {
addCategory($('#newCategory').val()); addCategory($('#newCategory').val());
}); });
}
$(document).on({
ajaxStart: function() { $('#spinner').show(); },
ajaxStop: function() { $('#spinner').hide(); },
ready: onReady()
}); });
})(); })();