equal
deleted
inserted
replaced
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 }; |