Commit 73537984 authored by Rafael Monnerat's avatar Rafael Monnerat

slapos_jio: Drop critical rss (duplicated)

  This RSS would provide the same information as the normall rss.

  So it has no actuall function
parent 48d46cca
...@@ -111,8 +111,6 @@ url_list = [ ...@@ -111,8 +111,6 @@ url_list = [
"gadget_erp5_page_slap_project_view.js", "gadget_erp5_page_slap_project_view.js",
"gadget_erp5_page_slap_regularisation_request_view.html", "gadget_erp5_page_slap_regularisation_request_view.html",
"gadget_erp5_page_slap_regularisation_request_view.js", "gadget_erp5_page_slap_regularisation_request_view.js",
"gadget_erp5_page_slap_rss_critical_ticket.html",
"gadget_erp5_page_slap_rss_critical_ticket.js",
"gadget_erp5_page_slap_rss_ticket.html", "gadget_erp5_page_slap_rss_ticket.html",
"gadget_erp5_page_slap_rss_ticket.js", "gadget_erp5_page_slap_rss_ticket.js",
"gadget_erp5_page_slap_sale_invoice_transaction_view.html", "gadget_erp5_page_slap_sale_invoice_transaction_view.html",
......
<!doctype html>
<html>
<!--
data-i18n=Parent Relative Url
data-i18n=Your RSS URL
data-i18n=Your Critical RSS Feed Link
-->
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>OfficeJS Add Text Document</title>
<script src="rsvp.js"></script>
<script src="renderjs.js"></script>
<script src="gadget_erp5_page_slap_rss_critical_ticket.js"></script>
</head>
<body>
<form class="save_form ui-body-c" novalidate>
<button type="submit" class="ui-btn ui-btn-b ui-btn-inline
ui-icon-edit ui-btn-icon-right ui-screen-hidden"></button>
<div data-gadget-url="gadget_erp5_form.html"
data-gadget-scope="form_view"
data-gadget-sandbox="public">
</div>
</form>
</body>
</html>
/*global window, rJS, RSVP */
/*jslint nomen: true, indent: 2, maxerr: 3 */
(function (window, rJS, RSVP) {
"use strict";
rJS(window)
/////////////////////////////////////////////////////////////////
// Acquired methods
/////////////////////////////////////////////////////////////////
.declareAcquiredMethod("updateHeader", "updateHeader")
.declareAcquiredMethod("updatePanel", "updatePanel")
.declareAcquiredMethod("getSetting", "getSetting")
.declareAcquiredMethod("getUrlFor", "getUrlFor")
.declareAcquiredMethod("redirect", "redirect")
.declareAcquiredMethod("jio_post", "jio_post")
.declareAcquiredMethod("jio_getAttachment", "jio_getAttachment")
.declareAcquiredMethod("notifySubmitting", "notifySubmitting")
.declareAcquiredMethod("notifySubmitted", 'notifySubmitted')
.declareAcquiredMethod("getTranslationList", "getTranslationList")
/////////////////////////////////////////////////////////////////
// declared methods
/////////////////////////////////////////////////////////////////
.allowPublicAcquisition('notifySubmit', function () {
return this.triggerSubmit();
})
.declareMethod("triggerSubmit", function () {
return this.element.querySelector('button[type="submit"]').click();
})
.declareMethod("render", function (options) {
var gadget = this,
page_title_translation,
translation_list = [
"Parent Relative Url",
"Your RSS URL",
"Your Critical RSS Feed Link"
];
if (options.jio_key === undefined) {
options.jio_key = "/";
}
return new RSVP.Queue()
.push(function () {
return gadget.getSetting("hateoas_url");
})
.push(function (url) {
return RSVP.all([
gadget.getDeclaredGadget('form_view'),
gadget.jio_getAttachment(options.jio_key,
url + options.jio_key + "/Base_getCriticalFeedUrl"),
gadget.getTranslationList(translation_list)
]);
})
.push(function (result) {
page_title_translation = result[2][2];
return result[0].render({
erp5_document: {
"_embedded": {"_view": {
"my_relative_url": {
"description": "",
"title": result[2][0],
"default": options.jio_key,
"css_class": "",
"required": 1,
"editable": 1,
"key": "relative_url",
"hidden": 1,
"type": "StringField"
},
"my_rss_link": {
"description": "",
"title": result[2][1],
// I hope romain don't see this, please replace by a LinkField
"default": "<a target=_blank href=" + result[1].restricted_access_url + "> Link </a>",
"css_class": "",
"required": 1,
"editable": 0,
"key": "certificate",
"hidden": 0,
"type": "EditorField"
}
}},
"_links": {
"type": {
// form_list display portal_type in header
name: ""
}
}
},
form_definition: {
group_list: [[
"center",
[["my_rss_link"], ["my_relative_url"]]
]]
}
});
})
.push(function () {
return gadget.updatePanel({
jio_key: "support_request_module"
});
})
.push(function () {
return RSVP.all([
gadget.getUrlFor({command: 'change', options: {page: "slap_ticket_list"}})
]);
})
.push(function (url_list) {
var header_dict = {
page_title: page_title_translation,
selection_url: url_list[0]
};
return gadget.updateHeader(header_dict);
});
});
}(window, rJS, RSVP));
\ No newline at end of file
...@@ -103,7 +103,6 @@ ...@@ -103,7 +103,6 @@
gadget.getUrlFor({command: "change", options: {"page": "slap_add_ticket"}}), gadget.getUrlFor({command: "change", options: {"page": "slap_add_ticket"}}),
gadget.getUrlFor({command: "change", options: {"page": "slap_rss_ticket"}}), gadget.getUrlFor({command: "change", options: {"page": "slap_rss_ticket"}}),
gadget.getUrlFor({command: "change", options: {"page": frontpage_gadget}}), gadget.getUrlFor({command: "change", options: {"page": frontpage_gadget}}),
gadget.getUrlFor({command: "change", options: {"page": "slap_rss_critical_ticket"}}),
gadget.updatePanel({jio_key: "support_request_module"}) gadget.updatePanel({jio_key: "support_request_module"})
]); ]);
}) })
...@@ -114,7 +113,6 @@ ...@@ -114,7 +113,6 @@
selection_url: result[2], selection_url: result[2],
add_url: result[0], add_url: result[0],
rss_url: result[1], rss_url: result[1],
critical_url: result[3]
}); });
}); });
}); });
......
...@@ -115,8 +115,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html ...@@ -115,8 +115,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html
web_page_module/rjs_gadget_erp5_page_slap_project_view_js web_page_module/rjs_gadget_erp5_page_slap_project_view_js
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_html
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_js
web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html
web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_js web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_js
web_page_module/rjs_gadget_erp5_page_slap_sale_invoice_transaction_view_html web_page_module/rjs_gadget_erp5_page_slap_sale_invoice_transaction_view_html
......
...@@ -116,8 +116,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html ...@@ -116,8 +116,6 @@ web_page_module/rjs_gadget_erp5_page_slap_project_view_html
web_page_module/rjs_gadget_erp5_page_slap_project_view_js web_page_module/rjs_gadget_erp5_page_slap_project_view_js
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_html
web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js web_page_module/rjs_gadget_erp5_page_slap_regularisation_request_view_js
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_html
web_page_module/rjs_gadget_erp5_page_slap_rss_critical_ticket_js
web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_html
web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_js web_page_module/rjs_gadget_erp5_page_slap_rss_ticket_js
web_page_module/rjs_gadget_erp5_page_slap_sale_invoice_transaction_view_html web_page_module/rjs_gadget_erp5_page_slap_sale_invoice_transaction_view_html
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment