mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-26 10:26:15 -04:00
Merge branch 'develop' of github.com:ether/etherpad-lite into new-icons
This commit is contained in:
commit
16d8068d7d
3 changed files with 13 additions and 2 deletions
|
@ -181,7 +181,7 @@ var padeditbar = (function()
|
|||
},
|
||||
redrawHeight: function(){
|
||||
var editbarHeight = $('.menu_left').height() + 2 + "px";
|
||||
var containerTop = $('.menu_left').height() + 5 + "px";
|
||||
var containerTop = $('.menu_left').height() + 7 + "px";
|
||||
$('#editbar').css("height", editbarHeight);
|
||||
$('#editorcontainer').css("top", containerTop);
|
||||
},
|
||||
|
|
|
@ -66,7 +66,12 @@ exports.getAvailablePlugins = function(maxCacheAge, cb) {
|
|||
if(exports.availablePlugins && maxCacheAge && Math.round(+new Date/1000)-cacheTimestamp <= maxCacheAge) {
|
||||
return cb && cb(null, exports.availablePlugins)
|
||||
}
|
||||
plugins = JSON.parse(plugins);
|
||||
try {
|
||||
plugins = JSON.parse(plugins);
|
||||
} catch (err) {
|
||||
console.error('error parsing plugins.json:', err);
|
||||
plugins = [];
|
||||
}
|
||||
exports.availablePlugins = plugins;
|
||||
cacheTimestamp = Math.round(+new Date/1000);
|
||||
cb && cb(null, plugins)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue