Skip to content

Commit

Permalink
Reload resource on new resource.
Browse files Browse the repository at this point in the history
  • Loading branch information
abe committed Sep 16, 2011
1 parent 9cc09a3 commit 3b27a34
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions static/admin.js
Expand Up @@ -233,8 +233,12 @@ window.App = (function ($, _, Backbone) {
name: name,
type: 'CSV',
package: package,
last_modified: new Date(),
creation_date: new Date(),
last_modified: new Date(
response[package][name].modification_timestamp * 1000
),
creation_date: new Date(
response[package][name].creation_timestamp * 1000
),
}
resources.push(resource);
});
Expand Down Expand Up @@ -338,6 +342,9 @@ window.App = (function ($, _, Backbone) {
self.primaryKey.val('');
self.pkg.val('');
self.doc.val('');
Resources.fetch({success: function() {
console.log('fetch res');
}});
},
error: function() {
console.log('FAIL');
Expand Down

0 comments on commit 3b27a34

Please sign in to comment.