add popover doc for cron expression

git-svn-id: https://svn.apache.org/repos/asf/archiva/trunk@1382943 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2012-09-10 15:32:18 +00:00
parent ed54b795ae
commit 66a5f466ac
2 changed files with 11 additions and 3 deletions

View File

@ -71,6 +71,9 @@ snapshots=Snapshots
blockRedeployments=Block Redeployments
daysOlder=Days Older
cronExpression=Cron Expression
cronExpression.help.title=Cron Expression Forma
cronExpression.help.content= Quartz cron is used. Documentation is: <a target="_blank" href="http://quartz-scheduler.org/documentation/quartz-2.1.x/cookbook/">here</a>
scanned=Scanned
deleteReleasedSnapshots=Delete Released Snapshots
releases=Releases

View File

@ -440,16 +440,21 @@ require(["jquery","jquery.tmpl","i18n"], function(jquery,jqueryTmpl,i18n) {
return str.replace(/\./g,"\\\.");
}
/**
* select class:
* * .popover-doc: activate popover with html:true and click trigger
* * .tooltip-doc: active tooltip
*/
activatePopoverDoc=function(){
var mainContent=$("#main-content");
mainContent.find(".popover-doc" ).popover({html: true, trigger: 'manual'});
mainContent.find(".popover-doc" ).on("click",function(){
mainContent.find(".popover-doc" ).popover({html: true, trigger: 'click'});
/*mainContent.find(".popover-doc" ).on("click",function(){
$(this).popover("show");
});
mainContent.find(".popover-doc" ).mouseover(function(){
$(this).popover("destroy");
});
});*/
mainContent.find(".tooltip-doc" ).tooltip({html: true, trigger: 'hover'});
}