Can't save menu item's view in J2.5 with joomfish installed

More
10 years 3 months ago - 8 years 3 months ago #43295 by ggppdk
Hello

i see,

just i wanted to identify when this is happening

ok, i will try/test your patch/fix

thanks !!


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 8 years 3 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
8 years 3 months ago - 8 years 3 months ago #59204 by igcorreia
Once again it happened:
edit: /administrator/components/com_menus/views/item/tmpl/edit.php
change the number to the value that appears in the console.
Code:
<script type="text/javascript"> Joomla.submitbutton = function(task, type) { if(window.location.href.indexOf("com_menus") == 59) { //console.log(window.location.href.indexOf("com_menus")); jQuery('#jfreference_id').removeClass('required').removeAttr('required').removeClass('invalid').removeAttr('aria-required').removeAttr('aria-invalid') } if (task == 'item.setType' || task == 'item.setMenuType') { if(task == 'item.setType') { document.id('item-form').elements['jform[type]'].value = type; document.id('fieldtype').value = 'type'; } else { document.id('item-form').elements['jform[menutype]'].value = type; } Joomla.submitform('item.setType', document.id('item-form')); } else if (task == 'item.cancel' || document.formvalidator.isValid(document.id('item-form'))) { Joomla.submitform(task, document.id('item-form')); } else { // special case for modal popups validation response $$('#item-form .modal-value.invalid').each(function(field){ var idReversed = field.id.split("").reverse().join(""); var separatorLocation = idReversed.indexOf('_'); var name = idReversed.substr(separatorLocation).split("").reverse().join("")+'name'; document.id(name).addClass('invalid'); }); } } </script>
Last edit: 8 years 3 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.272 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline