-
-
Notifications
You must be signed in to change notification settings - Fork 559
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XWIKI-21633: Adding a step tour on a class field doesn't work #3781
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change | ||||
---|---|---|---|---|---|---|
|
@@ -89,7 +89,12 @@ | |||||
</dl> | ||||||
#else | ||||||
<dl> | ||||||
<dt><label #if($isEditing)for="TourCode.StepClass_0_${prop.name}"#end>$services.localization.render("${class.name}_${prop.name}")</label></dt> | ||||||
<dt><label #if($isEditing)for="TourCode.StepClass_0_${prop.name}"#end>$services.localization.render("${class.name}_${prop.name}")</label> | ||||||
## Add a hint for the field if there's one defined in the translations. | ||||||
#if($!services.localization.render("${class.name}_${prop.name}.hint") != "${class.name}_${prop.name}.hint")## | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You can also use |
||||||
<span class='xHint'>$!services.localization.render("${class.name}_${prop.name}.hint")</span>## | ||||||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Suggested change
|
||||||
#end## | ||||||
</dt> | ||||||
<dd>$vobj.get($prop.getName())</dd> | ||||||
</dl> | ||||||
#end | ||||||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -428,7 +428,10 @@ require(['jquery', 'xwiki-meta'], function ($, xm) { | |
createTour(tour); | ||
} | ||
} | ||
}).fail(function (data) { | ||
console.error("Querying the JSON for the Tour failed. %o", data); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm not sure what's the benefit for this, since the browser's web developer tools already provide information about the failed HTTP requests. |
||
}); | ||
; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This looks unnecessary. |
||
}); | ||
});</code> | ||
</property> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,7 +38,7 @@ | |
<hidden>true</hidden> | ||
<content>{{include reference="TourCode.Macros"/}} | ||
|
||
{{velocity}} | ||
{{velocity wiki="false"}} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why the indentation? And BTW, you could instead set |
||
#if ($xcontext.action == 'get') | ||
##-------------------------------------------------------- | ||
## Get the tour steps corresponding to the target page | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Strange indentation. And I would call
$escapetool.xml()
on the label.