Skip to content
Snippets Groups Projects
Commit 8f5888f5 authored by Patrick Barroca's avatar Patrick Barroca :grin:
Browse files

Merge branch...

Merge branch 'hotline#91613_le_contenu_css_de_l_editeur_n_est_pas_modifie_alors_qu_il_me_dit_qu_il_est_sauvegarde' into 'hotline'

hotline #91613 CSS editor force cache invalidation

See merge request !3111
parents 143a18c0 815e91a9
Branches
Tags
3 merge requests!3297WIP: Master,!3125Hotline,!3111hotline #91613 CSS editor force cache invalidation
Pipeline #6936 passed with stage
in 37 minutes and 22 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
......
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