Re: Re: Draft dmHTML error 6.2

Phillip Rasmussen <[email protected]>
Newsgroups gmane.comp.cms.farcry.devel
Message-ID <[email protected]>
Hi Justin,
Yes I have, to 1.8.2 . Needed it for a calendar pluggin.
I've replaced the 
var aItems = $j('##' + formfieldname + '-library-wrapper').sortable(
'toArray',{'attribute':'serialize'});
with
var aItems = $j('li','##' + formfieldname + '-library-wrapper').map(function
(){return $j(this).attr('serialize');}).get();
And now all works :)
Thanks for the suggestion, I tested it with 1.6.4 and all worked as 
expected with the original code.

Phil

On Monday, 15 April 2013 13:47:45 UTC+12, Justin Carter wrote:
>
> Hmmm, ok getting closer... Have you overridden jQuery using 
> skin:registerJS with something newer than 1.6.4 (or jQuery UI with 
> something newer than 1.8.x?) or are you just using whatever comes with 
> Core? 
>
> cheers,
> Justin
>
> --
> Justin Carter
> http://www.madfellas.com/blog
> http://twitter.com/justincarter
>  
>
> On Mon, Apr 15, 2013 at 10:04 AM, Phillip Rasmussen <
> [email protected] <javascript:>> wrote:
>
>> It appears that 
>> var aItems = $j('##' + formfieldname + '-library-wrapper').sortable(
>> 'toArray',{'attribute':'serialize'});
>> is returning the js object and not the value of  'serialize'
>>
>>
>>
>> On Monday, 15 April 2013 11:33:35 UTC+12, Phillip Rasmussen wrote:
>>>
>>> Sorry, I stand corrected.
>>> It happend on any dmHTML page.
>>> Add relatedObjects > publish > creat a draft > removed a relatedObject > 
>>> save = error
>>>
>>> There is obviously some wrong with detachLibraryItem. I'll have a poke 
>>> around.
>>>
>>>  -- 
>> You received this message cos you are subscribed to "farcry-dev" Google 
>> group.
>> To post, email: farcr...-/[email protected] <javascript:>
>> To unsubscribe, email: farcry-dev+...-/[email protected] <javascript:>
>> For more options: http://groups.google.com/group/farcry-dev
>> --------------------------------
>> Follow us on Twitter: http://twitter.com/farcry
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "farcry-dev" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to farcry-dev+...-/[email protected] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 
You received this message cos you are subscribed to "farcry-dev" Google group.
To post, email: farcry-dev-/[email protected]
To unsubscribe, email: farcry-dev+unsubscribe-/[email protected]
For more options: http://groups.google.com/group/farcry-dev
--------------------------------
Follow us on Twitter: http://twitter.com/farcry
--- 
You received this message because you are subscribed to the Google Groups "farcry-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to farcry-dev+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/[email protected]
For more options, visit https://groups.google.com/groups/opt_out.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.