The PhpStorm don't recognizes a $.post
method:
I'm using Jquery 1.9.1!
What do I need to setup or what am I doing wrong?
Here is my menu.js
:
(function( Menu, $, undefined ) {
// propriedade que armazena id do menu
var menu_id;
// Métodos públicos
Menu.init = function(_menu_id) {
menu_id = _menu_id;
// preenchendo evento 'tree.move'
menuObj.bind('tree.move', function(event) {
var ordem;
// here i get the changes in 'event' param and put in 'ordem'
// save
salvarOrdemItens(JSON.stringify(ordem));
}
);
};
function salvarOrdemItens(mudancasMenu) {
// console.log(JSON.stringify(mudancasMenu));
$.post('/administrativo/menu/salvar-ordem-item/'+menu_id,
{ "mudancasMenus" : mudancasMenu }
);
}
}( window.Menu = window.Menu || {}, jQuery ));
I solved my problem:
"File" > "Invalidate caches"
More info about this command: http://www.jetbrains.com/phpstorm/webhelp/cleaning-system-cache.html
Thanks to @lazyone.