Commit 815e91a9 authored by Laurent's avatar Laurent

hotline #91613 CSS editor force cache invalidation

parent fc2048c1
Pipeline #6927 passed with stage
in 36 minutes and 55 seconds
- ticket #91613 : L'éditeur CSS force l'invalidation du cache navigateur pour avoir la dernière version
\ No newline at end of file
......@@ -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;
}
......
......@@ -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"]
}),
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment