--- a/src/pyams_skin/resources/js/myams.js Fri Apr 06 12:28:28 2018 +0200
+++ b/src/pyams_skin/resources/js/myams.js Fri Apr 06 23:59:43 2018 +0200
@@ -4862,22 +4862,22 @@
};
},
- /**
+ /**
* Switch element visibility
- */
- switchElementVisibility: function() {
- return function() {
- var source = $(this);
- var element = source.parents('tr').first();
- var container = element.parents('table');
- ams.ajax.post(container.data('ams-location') + '/' +
- container.data('ams-visibility-target'),
+ */
+ switchElementVisibility: function() {
+ return function() {
+ var source = $(this);
+ var element = source.parents('tr').first();
+ var container = element.parents('table');
+ ams.ajax.post(container.data('ams-location') + '/' +
+ container.data('ams-visibility-switcher'),
{object_name: element.data('ams-element-name')},
function(result, status) {
- if (result.visible) {
- $('i', source).attr('class', 'fa fa-fw fa-eye');
+ if (result.visible) {
+ $('i', source).attr('class', 'fa fa-fw fa-eye');
} else {
- $('i', source).attr('class', 'fa fa-fw fa-eye-slash text-danger');
+ $('i', source).attr('class', 'fa fa-fw fa-eye-slash text-danger');
}
});
}
@@ -5218,12 +5218,12 @@
return widget;
},
- /**
+ /**
* Replace given table with new content
* If table is located inside a switched fieldset, fieldset is opened
*
- * @param changes
- */
+ * @param changes
+ */
refreshSwitchedTable: function(changes) {
var widget = ams.skin.refreshTable(changes);
var legend = widget.siblings('legend');