nodebb-plugin-calendar-onekite 1.3.7 → 1.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/library.js +3 -3
- package/package.json +1 -1
- package/plugin.json +1 -1
- package/static/js/admin.js +2 -7
- package/templates/admin/plugins/calendar-onekite.tpl +1 -1
package/library.js
CHANGED
|
@@ -621,10 +621,10 @@ Plugin.init = async function (params) {
|
|
|
621
621
|
|
|
622
622
|
/* PAGE ADMIN PLUGIN (CORRIGÉ) */
|
|
623
623
|
|
|
624
|
-
router.get('/admin/plugins/calendar-onekite', middleware.admin.buildHeader, renderAdminPage);
|
|
625
|
-
router.get('/api/admin/plugins/calendar-onekite', renderAdminPage);
|
|
624
|
+
router.get('/admin/plugins/nodebb-calendar-onekite', middleware.admin.buildHeader, renderAdminPage);
|
|
625
|
+
router.get('/api/admin/plugins/nodebb-calendar-onekite', renderAdminPage);
|
|
626
626
|
|
|
627
|
-
router.put('/api/admin/plugins/calendar-onekite', middleware.admin.checkPrivileges, async (req, res) => {
|
|
627
|
+
router.put('/api/admin/plugins/nodebb-calendar-onekite', middleware.admin.checkPrivileges, async (req, res) => {
|
|
628
628
|
try {
|
|
629
629
|
await Settings.set('calendar-onekite', req.body);
|
|
630
630
|
res.json({ status: 'ok' });
|
package/package.json
CHANGED
package/plugin.json
CHANGED
package/static/js/admin.js
CHANGED
|
@@ -24,14 +24,9 @@ $(document).ready(function () {
|
|
|
24
24
|
limit: $('#calendar-onekite-widget-limit').val()
|
|
25
25
|
};
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
url: '/api/admin/plugins/nodebb-plugin-calendar-onekite',
|
|
29
|
-
method: 'PUT',
|
|
30
|
-
contentType: 'application/json',
|
|
31
|
-
data: JSON.stringify(settings)
|
|
32
|
-
})
|
|
27
|
+
api.put('/admin/plugins/nodebb-plugin-calendar-onekite', settings)
|
|
33
28
|
.then(() => app.alertSuccess('Paramètres enregistrés'))
|
|
34
|
-
.catch(err => app.alertError(err.
|
|
29
|
+
.catch(err => app.alertError(err.message || err));
|
|
35
30
|
});
|
|
36
31
|
},
|
|
37
32
|
|