Pages (3):    1 2 3   
Administrator
Administrator
acrylian   20-11-2013, 13:24
#11

A html/css cleanup is planned for next year, hopefully for 1.4.7: https://github.com/zenphoto/zenphoto/issues/191

Yes, that would include some more classes to address items more specifially. In this case just proper form element labels would help…

However, that's quite a major task and since we are volunteers you need to have the time for it which is quite an issue. Since it involves a lot backend functions and other stuff you sadly cannot just partly start but have to constantly work on it.

Member
Member
the_voder   20-11-2013, 14:14
#12

I see. I completely understand about this being a volunteer project. Was just wondering…

Thanks, guys,

a|x

Administrator
Administrator
acrylian   20-11-2013, 15:00
#13

Sure, was just an explaination. I think the best for your purpose is probably to use a filter plugin.

Member
Member
the_voder   20-11-2013, 15:38
#14

@acrylian a filter plugin to inject jQuery code and tweak the admin DOM, you mean?

a|x

Administrator
Administrator
acrylian   20-11-2013, 16:59
#15

Actually not really as the custom data field especially has only a class on the input element but not on the name before it. It is currently not even a label.

Member
Member
the_voder   20-11-2013, 17:49
#16

@acrylian I noticed that. Thought I might be able to select it using a jQuery 'td:contains()' selector.

a|x

Administrator
Administrator
acrylian   20-11-2013, 17:56
#17

Yes, but the problem is there are a lot "td" on the edit pages. You could use the "nth-child" selector but that of course will not work on some (older) browsers like especially IEs. But if that is no isssue that would be a way.

Member
Member
the_voder   22-11-2013, 16:05
#18

@acrylian you're right. It's harder than I thought to target the relevant DOM element…

a|x

Member
Member
the_voder   28-11-2013, 16:28
#19

This seems to work:

$("td:contains('Custom data')").filter(function() {
return (
$(this).clone() //clone the element
.children() //select all the children
.remove() //remove all the children
.end() //again go back to selected element
.filter(":contains('Custom data')").length > 0)
})

as a selector. I'm sure it's a massively inefficient way to do it, though.

a|x

Administrator
Administrator
acrylian   28-11-2013, 16:52
#20

Did not check in detail but couldn't you get the children right away with the first jquery call?

Pages (3):    1 2 3   
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.