Minor - format code, remove debug

pull/3766/head^2
Julio Montoya 5 years ago
parent 02b2a74982
commit 33754fe29d
  1. 3
      app/Resources/public/css/base.css
  2. 2
      main/inc/lib/javascript/record_audio/record_audio.js
  3. 6
      main/lp/learnpath.class.php
  4. 1
      main/template/default/layout/notification.tpl

@ -10529,7 +10529,7 @@ ul.dropdown-menu.inner > li > a {
#registration input.register-profile[value='5']:after, #registration input.register-profile[value='5']:after,
#registration input.register-profile[value='1']:after #registration input.register-profile[value='1']:after
{ {
top:-5px; top: -5px;
left: -2px; left: -2px;
} }
@ -10542,4 +10542,3 @@ ul.dropdown-menu.inner > li > a {
.form-inline .bootstrap-select.form-control:not([class*="col-"]) { .form-inline .bootstrap-select.form-control:not([class*="col-"]) {
width: 100%; width: 100%;
} }

@ -185,8 +185,6 @@ window.RecordAudio = (function () {
if (!recordRTC) { if (!recordRTC) {
return; return;
} }
console.log('stop');
stopTimer(); stopTimer();
recordRTC.stopRecording(function (audioURL) { recordRTC.stopRecording(function (audioURL) {
btnStart.prop('disabled', false).removeClass('hidden'); btnStart.prop('disabled', false).removeClass('hidden');

@ -2343,7 +2343,6 @@ class learnpath
$now = time(); $now = time();
if (Database::num_rows($rs) > 0) { if (Database::num_rows($rs) > 0) {
$row = Database::fetch_array($rs, 'ASSOC'); $row = Database::fetch_array($rs, 'ASSOC');
if (!empty($row['category_id'])) { if (!empty($row['category_id'])) {
$category = self::getCategory($row['category_id']); $category = self::getCategory($row['category_id']);
if (self::categoryIsVisibleForStudent($category, api_get_user_entity($student_id)) === false) { if (self::categoryIsVisibleForStudent($category, api_get_user_entity($student_id)) === false) {
@ -4416,11 +4415,6 @@ class learnpath
* @param int $id * @param int $id
* @param int $visibility * @param int $visibility
* *
* @throws \Doctrine\ORM\NonUniqueResultException
* @throws \Doctrine\ORM\ORMException
* @throws \Doctrine\ORM\OptimisticLockException
* @throws \Doctrine\ORM\TransactionRequiredException
*
* @return bool * @return bool
*/ */
public static function toggleCategoryVisibility($id, $visibility = 1) public static function toggleCategoryVisibility($id, $visibility = 1)

@ -144,7 +144,6 @@
}); });
if (add == true) { if (add == true) {
console.log('adding new element');
notifications.push(value); notifications.push(value);
count++; count++;
} }

Loading…
Cancel
Save