1

Adding code for profile dialog

This commit is contained in:
Alex Yatskov 2015-03-09 20:18:50 +09:00
parent c6b38b6758
commit 6442689798
2 changed files with 20 additions and 0 deletions

View File

@ -12,6 +12,20 @@
<h1><img id="spinner" alt="loading" class="pull-right" src="images/spinner.gif" style="display: none;" width="32" height="32">Reactive Search</h1>
</div>
<!-- profile dialog -->
<div id="profileDlg" class="modal hide fade" tabindex="-1" role="dialog">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h3>Profile</h3>
</div>
<div class="modal-body">
<iframe src="/profile.html" style="zoom:0.60" width="99.6%" height="250" frameborder="0"></iframe>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal">OK</button>
</div>
</div>
<div class="row">
<!-- query -->
<div class="col-md-3">
@ -42,6 +56,7 @@
<div class="checkbox">
<label><input type="checkbox" id="useRelativeScale" checked="checked">Use relative scale</label>
</div>
<button type="button" id="editProfile" class="btn btn-primary">Edit profile</button>
</div>
</div>
</div>

View File

@ -48,12 +48,17 @@
};
$('#minScore,#hintSteps,#walkingDist,#maxResults').change(onSearch);
$('#editProfile').click(onEditProfile);
window.accessReview = accessReview;
onSearch();
}
function onEditProfile() {
}
function onSearch() {
_ctx.query = {
features: _ctx.query.features || {},