On 29/01/2009 09:02, SeUr2000 wrote:
> I all,
> on version 3.1 I have modified function submitSearch
> on pmquery.js for to open a list of options for research.
>
> on version 4.1 I have tried to replicate the function submitSearch in
> pm.search.js but this is not no sign of response and the alert() not
> function.
>
> perhaps there is another place where I have to watch?
>
> thanks
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> pmapper-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/pmapper-users
>
To directly modify the JS sources (not recommended though...) you have
to define the path to your javascript directory in config.xml as
'javascript/src', otherwise the 'compressed' files are used (pm_cjs.js).
The call to this function from most places would probably also have to
be PM.Query.submitSearch() since in v4 nearly all JS functions are valid
only in their namespace context.
If you want to replace the default function with your own I'd recommend
placing it in custom.js under your config and put it inside the PM.Query
namespace, like
$.extend(PM.Query,
submitSearch: function() {
... your code ...
}
);
armin
PS: p.mapper is currently not that advanced, just 4.0 beta and not yet
at 4.1 ;-)
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
pmapper-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pmapper-users