"use strict";
(function(){
+var uri_base, environment, devel_env; // filled on page load from an HTML attribute
var ui_icon_class_re = new RegExp('\\bui-icon-\\S+\\b');
var uri_id_re = new RegExp('/(\\d+)$');
-var uri_base; // filled on page load from an HTML attribute
var lists_version = -1;
var lists = [];
var selected_list;
+function debug(...args) {
+ if (devel_env)
+ console.debug.apply(console, args);
+}
+
function uri_id(uri) {
var m = uri.match(uri_id_re);
return m ? m[1] : null;
}
$(function(){
uri_base = $('#page').attr('lsl-uri-base');
+ environment = $('#page').attr('lsl-environment');
+ devel_env = environment == 'development';
+
$(document).ajaxStart(function(){
$(document).addClass('blocked');
window.setTimeout(
-<div id="page" class="loading-lists" lsl-uri-base="<% request.uri_base %>">
+<div id="page" class="loading-lists" lsl-uri-base="<% request.uri_base %>" lsl-environment="<% settings.environment %>" >
<div id="sidebar">
<ul id="sidebar-items">
<li id="lists-sidebar-item">