Skip to content

Commit 420f4dc

Browse files
author
Cedric Dugas
committed
fixed comments no showing
1 parent cbb315e commit 420f4dc

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

js/releasenotes.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@
129129
},
130130
getPrettyDate : function(date){
131131
var dateFormat = "";
132+
if(!date) return "";
132133
var date = date.split("T");
133134
var dateArray = date[0].split("-");
134135
var dateObj = new Date(dateArray[0],(dateArray[1]-1),dateArray[2]);
@@ -166,7 +167,13 @@
166167
},
167168
callApi: function(options){
168169
var myoption = $.extend({}, options);
170+
var url = this.urls[options.action](options);
171+
169172
if(myoption.repo) delete myoption.repo;
173+
if(myoption.username) delete myoption.username;
174+
if(myoption.id) delete myoption.id;
175+
if(myoption.action) delete myoption.action;
176+
170177
return $.ajax({
171178
url:this.urls[options.action](options),
172179
dataType:respType,

0 commit comments

Comments
 (0)