Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED JENKINS-44797] Switch to adjuncts. (#17)
- Loading branch information
Showing
12 changed files
with
66 additions
and
98 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
/** ICONS **/ | ||
|
||
.icon-fav-active, | ||
.icon-fav-inactive { | ||
display:block; | ||
border:0px; | ||
background-repeat: no-repeat; | ||
} | ||
.icon-fav-active { | ||
background-image: url(../../../../../images/48x48/star-gold.png); | ||
} | ||
.icon-fav-inactive { | ||
background-image: url(../../../../../images/48x48/star.png); | ||
} | ||
|
||
|
||
/** SIZES **/ | ||
|
||
.icon-fav-inactive.icon-sm, | ||
.icon-fav-active.icon-sm { | ||
width:16px; | ||
height:16px; | ||
background-size: 15px 15px; | ||
} | ||
.icon-fav-inactive.icon-md, | ||
.icon-fav-active.icon-md { | ||
width:24px; | ||
height:24px; | ||
background-size: 23px 23px; | ||
} | ||
.icon-fav-inactive.icon-lg, | ||
.icon-fav-active.icon-lg { | ||
width:32px; | ||
height:32px; | ||
background-size: 31px 31px; | ||
} | ||
.icon-fav-inactive.icon-xlg, | ||
.icon-fav-active.icon-xlg { | ||
width:48px; | ||
height:48px; | ||
background-size: 47px 47px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
function toggleFavorite(job, a) { | ||
new Ajax.Request(rootURL + "/plugin/favorite/toggleFavorite?job=" + job, {method: 'POST'}); | ||
var favIcon = document.getElementById("fav_" + job); | ||
if (favIcon.classList.contains("icon-fav-inactive")) { | ||
favIcon.classList.add("icon-fav-active"); | ||
favIcon.classList.remove("icon-fav-inactive"); | ||
hoverNotification("Favorite added", a.parentNode); | ||
window.dispatchEvent(new CustomEvent('favorite-plugin-icon-change', { | ||
transition: "active-to-inactive", | ||
job: job | ||
})); | ||
} else { | ||
favIcon.classList.add("icon-fav-inactive"); | ||
favIcon.classList.remove("icon-fav-active"); | ||
hoverNotification("Favorite deleted", a.parentNode); | ||
window.dispatchEvent(new CustomEvent('favorite-plugin-icon-change', { | ||
transition: "inactive-to-active", | ||
job: job | ||
})); | ||
} | ||
return false; | ||
} |
47 changes: 0 additions & 47 deletions
47
src/main/resources/hudson/plugins/favorite/assets/css.jelly
This file was deleted.
Oops, something went wrong.
27 changes: 0 additions & 27 deletions
27
src/main/resources/hudson/plugins/favorite/assets/javascript.jelly
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/main/resources/hudson/plugins/favorite/assets/javascript.properties
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/main/resources/hudson/plugins/favorite/assets/javascript_de.properties
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/main/resources/hudson/plugins/favorite/assets/javascript_fr.properties
This file was deleted.
Oops, something went wrong.
2 changes: 0 additions & 2 deletions
2
src/main/resources/hudson/plugins/favorite/assets/javascript_ja.properties
This file was deleted.
Oops, something went wrong.
3 changes: 1 addition & 2 deletions
3
src/main/resources/hudson/plugins/favorite/column/FavoriteColumn/columnHeader.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3 changes: 1 addition & 2 deletions
3
src/main/resources/hudson/plugins/favorite/user/FavoriteUserProperty/config.jelly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters