mirror of
https://github.com/wintercms/winter.git
synced 2024-06-28 05:33:29 +02:00
Minor changes in the Inspector API.
This commit is contained in:
parent
2d849b2640
commit
d34bb2bd86
@ -170,6 +170,9 @@
|
||||
if (this.createInspector($element) === false) {
|
||||
return false
|
||||
}
|
||||
|
||||
ev.stopPropagation()
|
||||
return false
|
||||
}
|
||||
|
||||
$.oc.inspector.manager = new InspectorManager()
|
||||
|
@ -97,7 +97,7 @@
|
||||
//
|
||||
|
||||
BaseWrapper.prototype.getElementValuesInput = function() {
|
||||
return this.$element.find('input[data-inspector-values]')
|
||||
return this.$element.find('> input[data-inspector-values]')
|
||||
}
|
||||
|
||||
BaseWrapper.prototype.normalizePropertyCode = function(code, configuration) {
|
||||
|
6
modules/system/assets/ui/storm-min.js
vendored
6
modules/system/assets/ui/storm-min.js
vendored
@ -3654,7 +3654,9 @@ $container.trigger(allowedEvent)
|
||||
if(allowedEvent.isDefaultPrevented()){return false}
|
||||
return true}
|
||||
InspectorManager.prototype.onInspectableClicked=function(ev){var $element=$(ev.currentTarget)
|
||||
if(this.createInspector($element)===false){return false}}
|
||||
if(this.createInspector($element)===false){return false}
|
||||
ev.stopPropagation()
|
||||
return false}
|
||||
$.oc.inspector.manager=new InspectorManager()
|
||||
$.fn.inspector=function(){return this.each(function(){$.oc.inspector.manager.createInspector(this)})}}(window.jQuery);+function($){"use strict";if($.oc.inspector===undefined)
|
||||
$.oc.inspector={}
|
||||
@ -3690,7 +3692,7 @@ BaseProto.dispose.call(this)}
|
||||
BaseWrapper.prototype.init=function(){if(!this.surface){this.loadConfiguration()}
|
||||
else{this.adoptSurface()}
|
||||
this.$element.addClass('inspector-open')}
|
||||
BaseWrapper.prototype.getElementValuesInput=function(){return this.$element.find('input[data-inspector-values]')}
|
||||
BaseWrapper.prototype.getElementValuesInput=function(){return this.$element.find('> input[data-inspector-values]')}
|
||||
BaseWrapper.prototype.normalizePropertyCode=function(code,configuration){var lowerCaseCode=code.toLowerCase()
|
||||
for(var index in configuration){var propertyInfo=configuration[index]
|
||||
if(propertyInfo.property.toLowerCase()==lowerCaseCode){return propertyInfo.property}}
|
||||
|
Loading…
x
Reference in New Issue
Block a user