Commit 44a8f62b authored by efalcy's avatar efalcy
Browse files

dev #56107 : fix plugin kiosk edit

parent 812ccfb5
......@@ -32,11 +32,9 @@ class JavaController extends ZendAfi_Controller_Action {
public function menuimageAction() {
// rien ici -> tout est fait par le view-helper
}
public function kiosqueAction() {
$profil = $this->extractProfilFromUrl();
$id_module = $this->extractIdModuleFromUrl();
......
......@@ -44,22 +44,20 @@ CKEDITOR.dialog.add( 'kioskDialog', function ( editor ) {
isBokehKiosk: function(element) {
return
( $(element.$).hasClass('bokeh-kiosk') || $(element.$).closest('bokeh-kiosk').size );
var jqel = $(element.$);
return ( jqel.hasClass('bokeh-kiosk') || jqel.closest('bokeh-kiosk').length );
},
onShow: function() {
var selection = editor.getSelection();
var element = selection.getStartElement();
this.insertMode = true;
if (dialog.isBokehKiosk(element)) {
element = $(element.$).closest( 'bokeh-kiosk' );
this.insertMode = false;
return this.setupContent( element );
}
this.element = element;
if (!this.insertMode)
return this.setupContent( this.element );
this.setupContent(null);
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment