Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Finished adding Project URL

  • Loading branch information...
commit 184294e5a48a1d1f52756ca956572bdb3721221f 1 parent 9ff7682
Aaron Crowder authored
Showing with 7 additions and 0 deletions.
  1. +1 −0  index.html
  2. +6 −0 js/app.js
View
1  index.html
@@ -101,6 +101,7 @@
<h3><span id="proj_name_dd"></span></h3>
<p><span id="proj_description_dd"></span></p>
<p><i>Due on: <span id="proj_due_dd"></span></i></p>
+ <p><i>URL:</i> <a id="proj_url_dd" target="_blank"></a></p>
<span id="proj_id_dd" style="display: none;"></span>
</div>
View
6 js/app.js
@@ -136,6 +136,7 @@ function quick_add_project()
color: 'AFAFAF',
description: '',
due: '',
+ url: '',
location: 'new_body'
};
projects.save(proj, function(r) { /*callback function*/ });
@@ -168,6 +169,7 @@ function save_project()
color: $("#color_picker option:selected").text(),
description: $("#proj_description").val(),
due: $("#proj_due").val(),
+ url: $("#proj_url").val(),
location: 'new_body'
};
projects.save(proj, function(r) { /*callback function*/ });
@@ -186,6 +188,8 @@ function drillInto($id)
$("#proj_due_dd").html(r.due);
$("#proj_description_dd").html(r.description);
$("#proj_id_dd").html(r.key);
+ $("#proj_url_dd").attr('href', r.url);
+ $("#proj_url_dd").html(r.url);
$("#drill_into_proj").dialog("open");
});
@@ -196,6 +200,7 @@ function editItem($id)
projects.get($id, function(r) {
$("#proj_name_e").val(r.name);
$("#proj_due_e").val(r.due);
+ $("#proj_url_e").val(r.url);
$("#proj_description_e").val(r.description);
$("#proj_id_e").html(r.key);
$("#proj_loc_e").html(r.location);
@@ -214,6 +219,7 @@ function finish_editItem()
color: $("#color_picker_e option:selected").text(),
description: $("#proj_description_e").val(),
due: $("#proj_due_e").val(),
+ url: $("#proj_url_e").val(),
location: $("#proj_loc_e").html()
};
projects.save(proj, function(r) { /*callback function*/ });
Please sign in to comment.
Something went wrong with that request. Please try again.