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

[livejournal] r20132: LJSV-1816: Draft feature timestamp strip...

Committer: vkurkin
LJSV-1816: Draft feature timestamp stripping 0's
U   trunk/htdocs/js/rte.js
Modified: trunk/htdocs/js/rte.js
===================================================================
--- trunk/htdocs/js/rte.js	2011-09-27 04:05:09 UTC (rev 20131)
+++ trunk/htdocs/js/rte.js	2011-09-27 07:00:17 UTC (rev 20132)
@@ -113,7 +113,6 @@
 			$('#switched_rte_on').val('1');
 
 			if (!CKEditor && CKEDITOR && CKEDITOR.env.isCompatible) {
-				CKEDITOR.timestamp = 'v.84.2';
 				CKEDITOR.basePath = statPrefix + '/ck/';
 				var editor = CKEDITOR.replace('draft', {
 					skin: 'v2',
@@ -223,12 +222,12 @@
 
 		minute = date.getMinutes();
 		if (minute < 10) {
-			minute = Number('0' + minute);
+			minute = '0' + minute;
 		}
 
 		sec = date.getSeconds();
 		if (sec < 10) {
-			sec = Number('0' + sec);
+			sec = '0' + sec;
 		}
 
 		draftData.statusNode.val(draftData.saveMsg.replace(/\[\[time\]\]/, hour + ':' + minute + ':' + sec + time + ' '));

Tags: b_vladi, js, livejournal
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