mirror of
https://github.com/rabbibotton/clog.git
synced 2025-12-15 15:00:24 -08:00
Better load and save of panels by removing ids as part of process.
This commit is contained in:
parent
c55e3e0831
commit
a62065cac8
1 changed files with 8 additions and 1 deletions
|
|
@ -316,6 +316,7 @@ not a temporary attached one when using select-control."
|
|||
if((e.attr('id') === undefined) && (e.attr('data-clog-name') === undefined))~
|
||||
{e.attr('id','A'+clog_id++);~
|
||||
e.attr('data-clog-name','none-'+t+'-'+clog_nid++)}~
|
||||
if(e.attr('id') === undefined){e.attr('id','A'+clog_id++)}~
|
||||
if(e.attr('data-clog-name') === undefined){e.attr('data-clog-name',e.attr('id'))}~
|
||||
~{~A~}~
|
||||
if(e.attr('data-clog-type') === undefined){e.attr('data-clog-type','span')}})"
|
||||
|
|
@ -858,7 +859,13 @@ z.html()"
|
|||
(attribute content "data-clog-next-id"))
|
||||
(setf (attribute data "data-clog-title")
|
||||
(attribute content "data-clog-name"))
|
||||
(write-file (inner-html content) fname)
|
||||
(write-file (js-query content
|
||||
(format nil
|
||||
"var z=~a.clone();~
|
||||
z.find('*').each(function(){$(this).removeAttr('id')});~
|
||||
z.html()"
|
||||
(clog::jquery content)))
|
||||
fname)
|
||||
(destroy data))
|
||||
(maphash
|
||||
(lambda (html-id control)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue