Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
afi
opacce
Commits
815e91a9
Commit
815e91a9
authored
May 02, 2019
by
Laurent
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hotline #91613 CSS editor force cache invalidation
parent
fc2048c1
Pipeline
#6927
passed with stage
in 36 minutes and 55 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
4 deletions
+7
-4
VERSIONS_HOTLINE/91613
VERSIONS_HOTLINE/91613
+1
-0
amber/afi/js/AFI-OPAC.deploy.js
amber/afi/js/AFI-OPAC.deploy.js
+2
-1
amber/afi/js/AFI-OPAC.js
amber/afi/js/AFI-OPAC.js
+3
-2
amber/afi/st/AFI-OPAC.st
amber/afi/st/AFI-OPAC.st
+1
-1
No files found.
VERSIONS_HOTLINE/91613
0 → 100644
View file @
815e91a9
- ticket #91613 : L'éditeur CSS force l'invalidation du cache navigateur pour avoir la dernière version
\ No newline at end of file
amber/afi/js/AFI-OPAC.deploy.js
View file @
815e91a9
...
...
@@ -59,7 +59,8 @@ self["@cssUrl"]=smalltalk.send(linkTag,"_attr_",["data-url"]);
if
((
$receiver
=
self
[
"
@cssUrl
"
])
==
nil
||
$receiver
==
undefined
){
$1
=
self
[
"
@cssUrl
"
];
}
else
{
$1
=
smalltalk
.
send
(
smalltalk
.
send
(
self
[
"
@cssUrl
"
],
"
__comma
"
,[
"
?
"
]),
"
__comma
"
,[
smalltalk
.
send
(
smalltalk
.
send
((
smalltalk
.
Date
||
Date
),
"
_now
"
,[]),
"
_asMilliseconds
"
,[])]);
self
[
"
@cssUrl
"
]
=
smalltalk
.
send
(
smalltalk
.
send
(
self
[
"
@cssUrl
"
],
"
__comma
"
,[
"
?dt=
"
]),
"
__comma
"
,[
smalltalk
.
send
(
smalltalk
.
send
((
smalltalk
.
Date
||
Date
),
"
_now
"
,[]),
"
_asMilliseconds
"
,[])]);
$1
=
self
[
"
@cssUrl
"
];
};
return
$1
;
}
...
...
amber/afi/js/AFI-OPAC.js
View file @
815e91a9
...
...
@@ -75,12 +75,13 @@ self["@cssUrl"]=smalltalk.send(linkTag,"_attr_",["data-url"]);
if
((
$receiver
=
self
[
"
@cssUrl
"
])
==
nil
||
$receiver
==
undefined
){
$1
=
self
[
"
@cssUrl
"
];
}
else
{
$1
=
smalltalk
.
send
(
smalltalk
.
send
(
self
[
"
@cssUrl
"
],
"
__comma
"
,[
"
?
"
]),
"
__comma
"
,[
smalltalk
.
send
(
smalltalk
.
send
((
smalltalk
.
Date
||
Date
),
"
_now
"
,[]),
"
_asMilliseconds
"
,[])]);
self
[
"
@cssUrl
"
]
=
smalltalk
.
send
(
smalltalk
.
send
(
self
[
"
@cssUrl
"
],
"
__comma
"
,[
"
?dt=
"
]),
"
__comma
"
,[
smalltalk
.
send
(
smalltalk
.
send
((
smalltalk
.
Date
||
Date
),
"
_now
"
,[]),
"
_asMilliseconds
"
,[])]);
$1
=
self
[
"
@cssUrl
"
];
};
return
$1
;
},
args
:
[],
source
:
"
cssUrl
\
x0a
\
x09|linkTag|
\
x0a
\
x09linkTag := (window jQuery: '#profil_css').
\
x0a cssUrl := linkTag attr: 'data-url'.
\
x09
\
x0a ^ cssUrl ifNotNil: [cssUrl, '?', Date now asMilliseconds ]
"
,
source
:
"
cssUrl
\
x0a
\
x09|linkTag|
\
x0a
\
x09linkTag := (window jQuery: '#profil_css').
\
x0a cssUrl := linkTag attr: 'data-url'.
\
x09
\
x0a ^ cssUrl ifNotNil: [cssUrl
:= cssUrl
, '?
dt=
', Date now asMilliseconds ]
"
,
messageSends
:
[
"
jQuery:
"
,
"
attr:
"
,
"
ifNotNil:
"
,
"
,
"
,
"
asMilliseconds
"
,
"
now
"
],
referencedClasses
:
[
"
Date
"
]
}),
...
...
amber/afi/st/AFI-OPAC.st
View file @
815e91a9
...
...
@@ -17,7 +17,7 @@ cssUrl
|
linkTag
|
linkTag
:=
(
window
jQuery:
'#profil_css'
).
cssUrl
:=
linkTag
attr:
'data-url'
.
^
cssUrl
ifNotNil:
[
cssUrl
,
'?'
,
Date
now
asMilliseconds
]
^
cssUrl
ifNotNil:
[
cssUrl
:=
cssUrl
,
'?
dt=
'
,
Date
now
asMilliseconds
]
!
label
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment