Hi evalica
It’s me again! Unfortunately I was very busy the last weeks. I haven’t had time to update the documentation. However, I still have troubles finding the CSS selectors sometimes.
For example, I have installed the rating extension. In the Developer Tools i found the following:
<div class="xcontent">
<div class="row document-header">
<div class="document-info col-xs-12 col-md-7">
<div class="rating-wrapper" id="rating-xwiki:Main.WebHome">
<div class="avg-rating">
<div class="rating-container " id="xanwjqqtughv">
<div class="rating-header "></div>
<div class="rating-stars">
<ul class="star-rating -star ">
<li class="current-rating" style="width:0.0%;"></li>
<li><a href="#" title="Poor" class="one-star">1</a></li>
<li><a href="#" title="Satisfactory" class="two-stars">2</a></li>
<li><a href="#" title="Good" class="three-stars">3</a></li>
<li><a href="#" title="Very good" class="four-stars">4</a></li>
<li><a href="#" title="Excellent" class="five-stars">5</a></li>
</ul>
</div>
<div class="rating-message"><span>0</span> Votes</div>
</div>
</div>
</div>
but using “rating-xwiki:Main.WebHome” doesn’t work. After I tried it, i always got an error with “SEQUENCE”:
shortcut.add(“x x x a”, function() {
developerShortcutsRestCall("/xwiki/rest/currentuser/properties/usertype/next",
“Unable to update the current user type”);
}, {‘type’: shortcut.type.SEQUENCE, ‘disable_in_input’: true });
Can you help me? Thanks