src/pyams_portal/resources/js/portal.js
changeset 163 9e12eb044abf
parent 140 95bee9c0ae3f
child 169 2853b237d2d4
equal deleted inserted replaced
162:90f3c2bc80a7 163:9e12eb044abf
   477 				MyAMS.form.submit(form, {form_data: {'autosubmit': true}});
   477 				MyAMS.form.submit(form, {form_data: {'autosubmit': true}});
   478 			},
   478 			},
   479 
   479 
   480 			editPortlet: function() {
   480 			editPortlet: function() {
   481 				return function(portlet) {
   481 				return function(portlet) {
       
   482 					if (portlet === undefined) {
       
   483 						portlet = this;
       
   484 					}
   482 					if (!portlet.hasClass('portlet')) {
   485 					if (!portlet.hasClass('portlet')) {
   483 						portlet = portlet.parents('.portlet:first');
   486 						portlet = portlet.parents('.portlet:first');
   484 					}
   487 					}
   485 					MyAMS.dialog.open('portlet-properties.html?portlet.widgets.portlet_id=' + portlet.data('ams-portlet-id'));
   488 					MyAMS.dialog.open('portlet-properties.html?portlet.widgets.portlet_id=' + portlet.data('ams-portlet-id'));
   486 				};
   489 				};