Permalink
Browse files

update to bz.js 0.2.4

  • Loading branch information...
harthur committed Mar 10, 2012
1 parent c06b1bc commit 9c73b53cdf9602205768d6edaaa54e9efa772d3a
Showing with 197 additions and 507 deletions.
  1. +3 −1 app/bzhome.js
  2. +1 −1 app/handlers.js
  3. +2 −1 app/user.js
  4. +9 −7 index.html
  5. +1 −1 index.less
  6. +0 −496 lib/bz-0.2.2.js
  7. +181 −0 lib/bz-0.2.4.js
View
@@ -66,6 +66,7 @@ $(document).ready(function() {
+ "product=" + encodeURIComponent(product) + "&"
+ "component=" + encodeURIComponent(component));
});
+
$("#search-form").submit(function(event) {
event.preventDefault();
@@ -96,7 +97,8 @@ $(document).ready(function() {
}
window.open(url);
});
- $("#search-bugs").hide();
+
+ $("#search-bugs").hide();
// initalize the searches section
var searchlist = new SearchList;
View
@@ -1,5 +1,5 @@
Handlebars.registerPartial("bug_tooltip", "bug {{bug.id}} - " +
- "{{bug.status}}{{#if bug.resolution.length}} {{bug.resolution}}{{/if}} - " +
+ "{{bug.status}}{{#if bug.resolution}} {{bug.resolution}}{{/if}} - " +
"{{bug.summary}} (updated {{timeago bug.last_change_time}})"
);
View
@@ -3,7 +3,8 @@ function User(username, limit) {
this.limit = limit;
this.client = bz.createClient({
- username: username
+ username: username,
+ url: "https://api-dev.bugzilla.mozilla.org/1.0"
});
}
View
@@ -11,7 +11,7 @@
<script src="lib/jquery-1.6.4.min.js" type="text/javascript"></script>
<script src="lib/jquery.timeago.js" type="text/javascript"></script>
<script src="lib/jquery.ui.autocomplete.js"></script>
- <script src="lib/bz-0.2.2.js" type="text/javascript"></script>
+ <script src="lib/bz-0.2.4.js" type="text/javascript"></script>
<script src="lib/handlebars.js" type="text/javascript"></script>
<script src="lib/ba-linkify.min.js"></script>
<script src="lib/underscore-min.js"></script>
@@ -28,12 +28,14 @@
<script src="app/bzhome.js"></script>
<script id="timeline-bug" type="text/html">
- <div class="timeline-bug bug">
- <a class="bug-title" href="{{show_bug bug.id}}" target=_blank title="{{> bug_tooltip}}">
- <img id="bug-icon" hidden=true src="lib/bugzilla.png"/>
- <span class="bug-id">{{bug.id}}</span>
- <span class="bug-summary">{{bug.summary}}</span>
- </a>
+ <div class="bug-{{bug.id}} timeline-item">
+ <div class="timeline-bug bug">
+ <a class="bug-title" href="{{show_bug bug.id}}" target=_blank title="{{> bug_tooltip}}">
+ <img id="bug-icon" hidden=true src="lib/bugzilla.png"/>
+ <span class="bug-id">{{bug.id}}</span>
+ <span class="bug-summary">{{bug.summary}}</span>
+ </a>
+ </div>
</div>
</script>
View
@@ -420,7 +420,7 @@ section {
color: #606060;
}
- .timeline-bug {
+ .timeline-item {
padding-bottom: 1em;
padding-top: 1em;
border-bottom: 1px solid #CCC;
Oops, something went wrong.

0 comments on commit 9c73b53

Please sign in to comment.