This produces the following javascript error:<?jelly escape-by-default='true'?>
<j:jelly xmlns:j="jelly:core" xmlns:s="/lib/samples" xmlns:f="/lib/form" xmlns:l="/lib/layout">
<f:entry title="Some Title">
<f:checkbox title="Enable plugin" field="isMyPluginProject"/>
</f:entry>
<f:block>
<f:repeatable var="item" name="items" items="${instance.items}" noAddButton="true" minimum="0">
<fieldset>
<f:entry title="My Title" description="Project desc." field="pattern">
<f:textbox value="${item.pattern}" default="" />
</f:entry>
</fieldset>
<f:repeatableDeleteButton />
</f:repeatable>
</f:block>
</j:jelly>
Uncaught TypeError: Cannot read property 'hasClassName' of undefined
(anonymous function) @ repeatable.js:112
(anonymous function) @ behavior.js:111
(anonymous function) @ behavior.js:107
Behaviour.applySubtree @ behavior.js:93
Behaviour.apply @ behavior.js:76
(anonymous function) @ behavior.js:71
window.onload @ behavior.js:125
window.onload @ behavior.js:125
The failing codeine is in repeatable.js line 112. It tries to find a div with class 'repeatable-insertion-point'.
// do the ones that extract innerHTML so that they can get their original HTML before
// other behavior rules change them (like YUI buttons.)
Behaviour.specify("DIV.repeated-container", 'repeatable', -100, function(e) {
if(isInsideRemovable(e)) return;
// compute the insertion point
var ip = $(e.lastChild);
while (!ip.hasClassName("repeatable-insertion-point"))
ip = ip.previous();
// set up the logic
object(repeatableSupport).init(e, e.firstChild, ip);
});
What am I doing wrong?
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/NBRtnkAfDbU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/34db963b-1304-4e1c-8890-5dfd9b916e0f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/afdd40bf-815a-44e5-8ad3-2ab18181abbe%40googlegroups.com.
public class MyJobProperty extends JobProperty<AbstractProject<?, ?>>
{
private boolean isMyProject;
public String getTest()
{
return "test";
}
@Extension
public static class DescriptorImpl extends JobPropertyDescriptor
{
@Override
public JobProperty<?> newInstance(StaplerRequest req, JSONObject formData) throws FormException
{
return super.newInstance(req, formData);
}
@Override
public String getDisplayName()
{
return "...";
}
public String getTest()
{
return "ttest";
}
}
}
--
You received this message because you are subscribed to a topic in the Google Groups "Jenkins Developers" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jenkinsci-dev/NBRtnkAfDbU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jenkinsci-de...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/fd19b6c7-c7b1-4e23-bdde-843a7ed52849%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-dev/1C3D76A0-0C50-4379-952D-799A7C4F6CD1%40gmail.com.