1

Profile dialog shows up now

This commit is contained in:
Alex Yatskov 2015-03-09 22:56:19 +09:00
parent 6442689798
commit ad58384adf
2 changed files with 17 additions and 16 deletions

View File

@ -13,16 +13,22 @@
</div> </div>
<!-- profile dialog --> <!-- profile dialog -->
<div id="profileDlg" class="modal hide fade" tabindex="-1" role="dialog"> <div id="profileDlg" class="modal fade" tabindex="-1" role="dialog">
<div class="modal-dialog">
<div class="modal-content">
<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">×</button>
<h3>Profile</h3> <h3>Profile</h3>
</div> </div>
<div class="modal-body"> <div class="modal-body">
<iframe src="/profile.html" style="zoom:0.60" width="99.6%" height="250" frameborder="0"></iframe> <iframe src="/profile.html" width="100%" height="250" frameborder="0"></iframe>
</div> </div>
<div class="modal-footer"> <div class="modal-footer">
<button class="btn" data-dismiss="modal">OK</button> <button class="btn btn-default" data-dismiss="modal">OK</button>
</div>
</div>
</div>
</div> </div>
</div> </div>
@ -56,7 +62,7 @@
<div class="checkbox"> <div class="checkbox">
<label><input type="checkbox" id="useRelativeScale" checked="checked">Use relative scale</label> <label><input type="checkbox" id="useRelativeScale" checked="checked">Use relative scale</label>
</div> </div>
<button type="button" id="editProfile" class="btn btn-primary">Edit profile</button> <button type="button" data-toggle="modal" data-target="#profileDlg" class="btn btn-primary">Edit profile</button>
</div> </div>
</div> </div>
</div> </div>

View File

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