package: deps update, fix --read-only release 0.17.3

This commit is contained in:
jean-emmanuel 2017-03-22 13:34:27 +01:00
parent fec5ed9991
commit 246df5487a
6 changed files with 25 additions and 21 deletions

View file

@ -145,7 +145,7 @@ module.exports = {
})
$('.editor').append(f)
},
editorDisable: function(permanent){
editorDisable: function(){
$('.widget.ui-resizable').resizable('destroy')
$('.widget.ui-draggable').draggable('destroy').find('.ui-draggable-handle').remove()
$('.editing').removeClass('editing')
@ -156,12 +156,10 @@ module.exports = {
$('body').removeClass('editor-enabled')
$('#grid-width-input').remove()
EDITING = false
if (permanent) {
if (READ_ONLY) {
module.exports.editorEnable = ()=>{}
$('.editor .btn').remove()
$('.editor .title').html($('.editor .title').html() + ' (disabled)').addClass('disabled')
module.exports.editorEnable = ()=>{}
READ_ONLY = true
}
},
traversingDisable: function(){

View file

@ -145,8 +145,10 @@ var callbacks = module.exports = {
GRIDWIDTH = getComputedStyle(document.documentElement).getPropertyValue("--grid-width")
PXSCALE = getComputedStyle(document.documentElement).getPropertyValue("--pixel-scale")
INITIALZOOM = PXSCALE
},
readOnly: function(){
READ_ONLY = true
}
}
var bindCallback = function(i) {