mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-11 12:03:14 +00:00
Use backbone to display taskmanager front end
This commit is contained in:
23
www/scripts/apps/admin/tasks-manager/collections/tasks.js
Normal file
23
www/scripts/apps/admin/tasks-manager/collections/tasks.js
Normal file
@@ -0,0 +1,23 @@
|
||||
/*
|
||||
* This file is part of Phraseanet
|
||||
*
|
||||
* (c) 2005-2014 Alchemy
|
||||
*
|
||||
* For the full copyright and license information, please view the LICENSE
|
||||
* file that was distributed with this source code.
|
||||
*/
|
||||
|
||||
define([
|
||||
"underscore",
|
||||
"backbone",
|
||||
"models/task"
|
||||
], function (_, Backbone, TaskModel) {
|
||||
var TaskCollection = Backbone.Collection.extend({
|
||||
model: TaskModel,
|
||||
url: function () {
|
||||
return "/admin/task-manager/tasks";
|
||||
}
|
||||
});
|
||||
|
||||
return TaskCollection;
|
||||
});
|
Reference in New Issue
Block a user