|
19 | 19 | */ |
20 | 20 |
|
21 | 21 | (function() { |
22 | | - OCA.FilesExternalScript = OCA.FilesExternalScript || {}; |
| 22 | + OCA.WorkflowScript = OCA.WorkflowScript || {}; |
23 | 23 |
|
24 | 24 | /** |
25 | | - * @class OCA.FilesExternalScript.Operation |
| 25 | + * @class OCA.WorkflowScript.Operation |
26 | 26 | */ |
27 | | - OCA.FilesExternalScript.Operation = |
| 27 | + OCA.WorkflowScript.Operation = |
28 | 28 | OCA.WorkflowEngine.Operation.extend({ |
29 | 29 | defaults: { |
30 | | - 'class': 'OCA\\FilesExternalScript\\Operation', |
| 30 | + 'class': 'OCA\\WorkflowScript\\Operation', |
31 | 31 | 'name': '', |
32 | 32 | 'checks': [], |
33 | 33 | 'operation': '' |
34 | 34 | } |
35 | 35 | }); |
36 | 36 |
|
37 | 37 | /** |
38 | | - * @class OCA.FilesExternalScript.OperationsCollection |
| 38 | + * @class OCA.WorkflowScript.OperationsCollection |
39 | 39 | * |
40 | 40 | * collection for all configured operations |
41 | 41 | */ |
42 | | - OCA.FilesExternalScript.OperationsCollection = |
| 42 | + OCA.WorkflowScript.OperationsCollection = |
43 | 43 | OCA.WorkflowEngine.OperationsCollection.extend({ |
44 | | - model: OCA.FilesExternalScript.Operation |
| 44 | + model: OCA.WorkflowScript.Operation |
45 | 45 | }); |
46 | 46 |
|
47 | 47 | /** |
48 | | - * @class OCA.FilesExternalScript.OperationView |
| 48 | + * @class OCA.WorkflowScript.OperationView |
49 | 49 | * |
50 | 50 | * this creates the view for a single operation |
51 | 51 | */ |
52 | | - OCA.FilesExternalScript.OperationView = |
| 52 | + OCA.WorkflowScript.OperationView = |
53 | 53 | OCA.WorkflowEngine.OperationView.extend({ |
54 | | - model: OCA.FilesExternalScript.Operation, |
| 54 | + model: OCA.WorkflowScript.Operation, |
55 | 55 | render: function() { |
56 | 56 | var $el = OCA.WorkflowEngine.OperationView.prototype.render.apply(this); |
57 | 57 | $el.find('input.operation-operation') |
58 | 58 | .css('width', '400px') |
59 | | - .attr("placeholder", t('files_external_script', 'command to execute')) |
| 59 | + .attr("placeholder", t('workflow_script', 'command to execute')) |
60 | 60 | } |
61 | 61 | }); |
62 | 62 |
|
63 | 63 | /** |
64 | | - * @class OCA.FilesExternalScript.OperationsView |
| 64 | + * @class OCA.WorkflowScript.OperationsView |
65 | 65 | * |
66 | 66 | * this creates the view for configured operations |
67 | 67 | */ |
68 | | - OCA.FilesExternalScript.OperationsView = |
| 68 | + OCA.WorkflowScript.OperationsView = |
69 | 69 | OCA.WorkflowEngine.OperationsView.extend({ |
70 | 70 | initialize: function() { |
71 | 71 | OCA.WorkflowEngine.OperationsView.prototype.initialize.apply(this, [ |
72 | | - 'OCA\\FilesExternalScript\\Operation' |
| 72 | + 'OCA\\WorkflowScript\\Operation' |
73 | 73 | ]); |
74 | 74 | }, |
75 | 75 | renderOperation: function(operation) { |
76 | | - var subView = new OCA.FilesExternalScript.OperationView({ |
| 76 | + var subView = new OCA.WorkflowScript.OperationView({ |
77 | 77 | model: operation |
78 | 78 | }); |
79 | 79 |
|
|
88 | 88 | $(document).ready(function() { |
89 | 89 | OC.SystemTags.collection.fetch({ |
90 | 90 | success: function() { |
91 | | - new OCA.FilesExternalScript.OperationsView({ |
92 | | - el: '#files_external_script .rules', |
93 | | - collection: new OCA.FilesExternalScript.OperationsCollection() |
| 91 | + new OCA.WorkflowScript.OperationsView({ |
| 92 | + el: '#workflow_script .rules', |
| 93 | + collection: new OCA.WorkflowScript.OperationsCollection() |
94 | 94 | }); |
95 | 95 | } |
96 | 96 | }); |
|
0 commit comments