} ?>
<script type="text/javascript">
+ 'use strict';
require({cache:{}});
<?php
require_once 'lib/jshrink/Minifier.php';
console.warn('PluginHost::run ' + name);
if (typeof(this.hooks[name]) != 'undefined')
- for (i = 0; i < this.hooks[name].length; i++)
+ for (var i = 0; i < this.hooks[name].length; i++)
if (!this.hooks[name][i](args)) break;
}
};
window.open("backend.php" + query + "&debug=1&csrf_token=" + getInitParam("csrf_token"));
}
- timeout_ms = can_wait ? 250 : 0;
+ var timeout_ms = can_wait ? 250 : 0;
_viewfeed_timeout = setTimeout(function() {
new Ajax.Request("backend.php", {
if (params) {
console.log('reading init-params...');
- for (k in params) {
+ for (var k in params) {
console.log("IP: " + k + " => " + JSON.stringify(params[k]));
if (k == "label_base_index") _label_base_index = parseInt(params[k]);
}
var hotkey_action = false;
var hotkeys = getInitParam("hotkeys");
- for (sequence in hotkeys[1]) {
+ for (var sequence in hotkeys[1]) {
if (sequence == hotkey) {
hotkey_action = hotkeys[1][sequence];
break;
var hotkeys = getInitParam("hotkeys");
var tmp = [];
- for (sequence in hotkeys[1]) {
+ for (var sequence in hotkeys[1]) {
filtered = sequence.replace(/\|.*$/, "");
tmp[filtered] = hotkeys[1][sequence];
}
//console.log("parsing runtime info...");
- for (k in data) {
+ for (var k in data) {
var v = data[k];
// console.log("RI: " + k + " => " + v);
var hotkey_action = false;
var hotkeys = getInitParam("hotkeys");
- for (sequence in hotkeys[1]) {
+ for (var sequence in hotkeys[1]) {
if (sequence == hotkey) {
hotkey_action = hotkeys[1][sequence];
break;
}
function hash_get(key) {
- kv = window.location.hash.substring(1).toQueryParams();
+ var kv = window.location.hash.substring(1).toQueryParams();
return kv[key];
}
function hash_set(key, value) {
- kv = window.location.hash.substring(1).toQueryParams();
+ var kv = window.location.hash.substring(1).toQueryParams();
kv[key] = value;
window.location.hash = $H(kv).toQueryString();
}
imgs.push(fte[i]);
}
- for (i = 0; i < imgs.length; i++) {
+ for (var i = 0; i < imgs.length; i++) {
var img = imgs[i];
if (!row.hasClassName("published") || note != undefined) {