From e5e509708123f4e06cde951dfd0a1e06b6316927 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 15 Apr 2013 13:29:14 +0100 Subject: [PATCH] NOBUG - reduce whitespace errors a little --- lib/db/index.html | 2 +- lib/editor/tinymce/module.js | 2 +- lib/index.html | 2 +- message/module.js | 10 +++++----- message/settings.html | 2 +- mod/assignment/assignment.js | 4 ++-- mod/chat/gui_header_js/users.php | 1 - mod/quiz/module.js | 2 +- rss/index.html | 2 +- tags.txt | 2 +- 10 files changed, 14 insertions(+), 15 deletions(-) diff --git a/lib/db/index.html b/lib/db/index.html index 8d1c8b69c3f..8b137891791 100644 --- a/lib/db/index.html +++ b/lib/db/index.html @@ -1 +1 @@ - + diff --git a/lib/editor/tinymce/module.js b/lib/editor/tinymce/module.js index eedc3e1146b..8871c4feace 100644 --- a/lib/editor/tinymce/module.js +++ b/lib/editor/tinymce/module.js @@ -91,7 +91,7 @@ M.editor_tinymce.filepicker = function(target_id, url, type, win) { } else if (type == 'image') { // When image button clicked. options = M.editor_tinymce.filepicker_options[editor_id]['image']; - } + } options.formcallback = M.editor_tinymce.filepicker_callback; options.editor_target = win.document.getElementById(target_id); diff --git a/lib/index.html b/lib/index.html index 8d1c8b69c3f..8b137891791 100644 --- a/lib/index.html +++ b/lib/index.html @@ -1 +1 @@ - + diff --git a/message/module.js b/message/module.js index f0d17c1273f..dc4ee7a7324 100644 --- a/message/module.js +++ b/message/module.js @@ -5,10 +5,10 @@ M.core_message.init_focus = function(Y, eid) { }; M.core_message.init_refresh_page = function(Y, delay, url) { - var delay_callback = function() { - document.location.replace(url); - }; - setTimeout(delay_callback, delay); + var delay_callback = function() { + document.location.replace(url); + }; + setTimeout(delay_callback, delay); }; M.core_message.combinedsearchgotfocus = function(e) { @@ -111,4 +111,4 @@ M.core_message.init_editsettings = function(Y) { } editsettings.init(); -} \ No newline at end of file +} diff --git a/message/settings.html b/message/settings.html index 308afe75a5c..1f75ddb3c8d 100644 --- a/message/settings.html +++ b/message/settings.html @@ -14,7 +14,7 @@ /> - +
diff --git a/mod/assignment/assignment.js b/mod/assignment/assignment.js index 8e77ad923c5..07c1af3642b 100644 --- a/mod/assignment/assignment.js +++ b/mod/assignment/assignment.js @@ -13,8 +13,8 @@ function saveNext(){ } function initNext(nextid, usserid) { - assignment.nextid = nextid; - assignment.userid = userid; + assignment.nextid = nextid; + assignment.userid = userid; } M.mod_assignment = {}; diff --git a/mod/chat/gui_header_js/users.php b/mod/chat/gui_header_js/users.php index 246417c98aa..56d9ee6aea4 100644 --- a/mod/chat/gui_header_js/users.php +++ b/mod/chat/gui_header_js/users.php @@ -89,7 +89,6 @@ foreach ($chatusers as $chatuser) { $min = $min < 10 ? '0'.$min : $min; $sec = $sec < 10 ? '0'.$sec : $sec; $idle = $min.':'.$sec; - $row = array(); $row[0] = $OUTPUT->user_picture($chatuser, array('courseid'=>$courseid, 'popup'=>true)); diff --git a/mod/quiz/module.js b/mod/quiz/module.js index 5e505f918be..14bb6f68e43 100644 --- a/mod/quiz/module.js +++ b/mod/quiz/module.js @@ -95,7 +95,7 @@ M.mod_quiz.timer = { update: function() { var Y = M.mod_quiz.timer.Y; var secondsleft = Math.floor((M.mod_quiz.timer.endtime - new Date().getTime())/1000); - + // If this is a preview and time expired, display timeleft 0 and don't renew the timer. if (M.mod_quiz.timer.preview && secondsleft < 0) { Y.one('#quiz-time-left').setContent('0:00:00'); diff --git a/rss/index.html b/rss/index.html index 8d1c8b69c3f..8b137891791 100644 --- a/rss/index.html +++ b/rss/index.html @@ -1 +1 @@ - + diff --git a/tags.txt b/tags.txt index 39607e31c1d..189996d74f4 100644 --- a/tags.txt +++ b/tags.txt @@ -1,7 +1,7 @@ Generating a tags file ====================== -If you need a tags file so that you can jump around Moodle code +If you need a tags file so that you can jump around Moodle code easily in your editor (eg vim or emacs), you can generate one: Exuberant ctags (default on Linux, can be compiled on other platforms):