Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
J
js_user_scripts
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
GitLab upgrade completed. Current version is 17.11.4.
Show more breadcrumbs
CHEVILLARD Sylvain
js_user_scripts
Commits
79cd73ca
Commit
79cd73ca
authored
1 year ago
by
CHEVILLARD Sylvain
Browse files
Options
Downloads
Patches
Plain Diff
personnaliseAjoutNotice est bugguée. Tentative de compréhension
parent
85574fe1
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
koha_bibagos.user.js
+9
-4
9 additions, 4 deletions
koha_bibagos.user.js
with
9 additions
and
4 deletions
koha_bibagos.user.js
+
9
−
4
View file @
79cd73ca
...
@@ -134,9 +134,13 @@
...
@@ -134,9 +134,13 @@
d
.
parentNode
.
insertBefore
(
selectionDiv
,
d
);
d
.
parentNode
.
insertBefore
(
selectionDiv
,
d
);
}
}
function
personnaliseAjoutNotice
()
{
function
personnaliseAjoutNotice
(
n
)
{
var
categorieActuelle
=
document
.
querySelector
(
"
#toolbar a.change-framework
"
).
attributes
[
"
data-frameworkcode
"
].
nodeValue
;
var
categorieActuelle
=
document
.
querySelector
(
"
#toolbar a.change-framework
"
).
attributes
[
"
data-frameworkcode
"
].
nodeValue
;
if
(
categorieActuelle
!=
"
BOOK
"
)
{
console
.
log
(
"
n=
"
+
n
+
"
:
"
+
categorieActuelle
);
if
(
n
>
0
)
setTimeout
(
()
=>
{
personnaliseAjoutNotice
(
n
-
1
);},
100
);
/*
if (categorieActuelle != "BOOK") {
document.querySelector("#settings-menu a[data-frameworkcode='BOOK']").click();
document.querySelector("#settings-menu a[data-frameworkcode='BOOK']").click();
}
}
else {
else {
...
@@ -149,7 +153,8 @@
...
@@ -149,7 +153,8 @@
categorie.value = "BD";
categorie.value = "BD";
categorie.querySelector("option[value='BD']").selected=1;
categorie.querySelector("option[value='BD']").selected=1;
categorie.dispatchEvent(new Event('change'))
categorie.dispatchEvent(new Event('change'))
}
}
*/
}
}
/* Déclenchement des actions au chargement de la page */
/* Déclenchement des actions au chargement de la page */
...
@@ -163,6 +168,6 @@
...
@@ -163,6 +168,6 @@
afficheProfilsPermissions
();
afficheProfilsPermissions
();
}
}
if
(
/addbiblio.pl/
.
test
(
window
.
location
.
href
))
{
if
(
/addbiblio.pl/
.
test
(
window
.
location
.
href
))
{
personnaliseAjoutNotice
();
personnaliseAjoutNotice
(
100
);
}
}
})();
})();
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment