Skip to content

Commit

Permalink
Add dummy link functionality to link menu, fixes #24
Browse files Browse the repository at this point in the history
  • Loading branch information
edorcutt committed May 4, 2013
1 parent a3a71a4 commit c4b4c14
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
20 changes: 20 additions & 0 deletions app/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,9 @@
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Link</a>
<ul class="dropdown-menu">
<li><a class="oauth-sqtag-url" href="#" data-toggle="collapse" data-target=".nav-collapse.in">SquareTag</a></li>
<li><a href="#" data-toggle="collapse" data-target=".nav-collapse.in">Neustar pCloud</a></li>
<li class="divider"></li>
<li><a href="#" id="navAddLink" data-toggle="nav-collapse.in" data-target=".nav-collapse.in">Add Link</a></li>
</ul>
</ul>

Expand All @@ -70,6 +73,23 @@
</div>
</div>

<div id="modalAddLink" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
<h3 id="myModalLabel">Add New Link</h3>
</div>
<div class="modal-body">
<form class="form-inline" style="text-align:center;">
<label>Link URL</label>
<input type="text" class="input-large" placeholder="http://myhost.com/">
</form>
</div>
<div class="modal-footer">
<button class="btn" data-dismiss="modal" aria-hidden="true">Cancel</button>
<button class="btn btn-primary" data-dismiss="modal">Add Link</button>
</div>
</div>

<div class="container-fluid">

<!-- please stand by ... calling the server
Expand Down
6 changes: 6 additions & 0 deletions app/js/forever.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ $(document).ready(function() {
var OAuth_Sqtag_URL = CloudOS_Get_OAuth_URL();
$('a.oauth-sqtag-url').attr('href', OAuth_Sqtag_URL);

// --------------------------------------------
// Click handler for Add Link on Homepage
$('#navAddLink').click(function() {
$('#modalAddLink').modal();
});

page('/', view_home);
page('/friends', view_friends);
page('/finder', view_finder);
Expand Down

0 comments on commit c4b4c14

Please sign in to comment.