Vlad Kurkin (b_vladi) wrote in changelog,
Vlad Kurkin
b_vladi
changelog

[livejournal] r21555: LJSUP-11651: Add release number into par...

Committer: vkurkin
LJSUP-11651: Add release number into param of version for RTE static files
U   trunk/htdocs/js/ck/config.js
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/ck/config.js
===================================================================
--- trunk/htdocs/js/ck/config.js	2012-03-27 11:26:22 UTC (rev 21554)
+++ trunk/htdocs/js/ck/config.js	2012-03-27 12:25:51 UTC (rev 21555)
@@ -8,7 +8,7 @@
 	config.autoParagraph = false;
 	config.autoUpdateElement = false;
 	config.docType = '<!DOCTYPE html>';
-	config.contentsCss = '/js/ck/contents.css?t=' + CKEDITOR.timestamp;
+	config.contentsCss = '/js/ck/contents.css?t=' + Site.version;
 	config.plugins = 'ajax,' +
 		'basicstyles,' +
 		'bidi,' +

Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2012-03-27 11:26:22 UTC (rev 21554)
+++ trunk/htdocs/js/rte.js	2012-03-27 12:25:51 UTC (rev 21555)
@@ -111,13 +111,14 @@
 		if (!window.switchedRteOn) {
 			if (!CKEditor && CKEDITOR && CKEDITOR.env.isCompatible) {
 				$.ajax({
-					url: '/js/ck/contents.css?t=' + CKEDITOR.timestamp,
+					url: '/js/ck/contents.css?t=' + Site.version,
 					success: function (data) {
 						CKEDITOR.styleText = data;
 					}
 				});
 
 				CKEDITOR.basePath = statPrefix + '/ck/';
+				CKEDITOR.timestamp = Site.version;
 
 				CKEDITOR.replace('draft', {
 					skin: 'v2',

Tags: b_vladi, js, livejournal, vkurkin
Subscribe
  • Post a new comment

    Error

    Anonymous comments are disabled in this journal

    default userpic

    Your reply will be screened

    Your IP address will be recorded 

  • 0 comments