Gitlab CSE Unil

Commit 4e2987a6 authored by M. Chardon's avatar M. Chardon
Browse files

résolution bug marqueur : erreur ordre listener

parent f13d7103
...@@ -1587,6 +1587,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -1587,6 +1587,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param event * @param event
*/ */
function onPropertyChange(event) { function onPropertyChange(event) {
$(this).addClass("focus");
updateSelectedItemProp(event.data.pName); updateSelectedItemProp(event.data.pName);
} }
...@@ -1621,7 +1622,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -1621,7 +1622,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
if (_.isFunction(pDef.onChange)) { if (_.isFunction(pDef.onChange)) {
elem.on('change', pDef.onChange); elem.on('change', pDef.onChange);
} else { } else {
elem.on('change', null, {pName: pName}, onPropertyChange); var elemBtn = elem.find(".btn-cat");
if (elemBtn) {
elem.find(".btn-cat").on('change', null, {pName: pName}, onPropertyChange);
}else{
elem.on('change', null, {pName: pName}, onPropertyChange);
}
} }
if (_.isFunction(pDef['onBlur'])) { if (_.isFunction(pDef['onBlur'])) {
......
...@@ -31060,6 +31060,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31060,6 +31060,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param event * @param event
*/ */
function onPropertyChange(event) { function onPropertyChange(event) {
$(this).addClass("focus");
updateSelectedItemProp(event.data.pName); updateSelectedItemProp(event.data.pName);
} }
   
...@@ -31094,7 +31095,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31094,7 +31095,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
if (_.isFunction(pDef.onChange)) { if (_.isFunction(pDef.onChange)) {
elem.on('change', pDef.onChange); elem.on('change', pDef.onChange);
} else { } else {
elem.on('change', null, {pName: pName}, onPropertyChange); var elemBtn = elem.find(".btn-cat");
if (elemBtn) {
elem.find(".btn-cat").on('change', null, {pName: pName}, onPropertyChange);
}else{
elem.on('change', null, {pName: pName}, onPropertyChange);
}
} }
   
if (_.isFunction(pDef['onBlur'])) { if (_.isFunction(pDef['onBlur'])) {
...@@ -31062,6 +31062,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31062,6 +31062,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param event * @param event
*/ */
function onPropertyChange(event) { function onPropertyChange(event) {
$(this).addClass("focus");
updateSelectedItemProp(event.data.pName); updateSelectedItemProp(event.data.pName);
} }
   
...@@ -31096,7 +31097,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31096,7 +31097,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
if (_.isFunction(pDef.onChange)) { if (_.isFunction(pDef.onChange)) {
elem.on('change', pDef.onChange); elem.on('change', pDef.onChange);
} else { } else {
elem.on('change', null, {pName: pName}, onPropertyChange); var elemBtn = elem.find(".btn-cat");
if (elemBtn) {
elem.find(".btn-cat").on('change', null, {pName: pName}, onPropertyChange);
}else{
elem.on('change', null, {pName: pName}, onPropertyChange);
}
} }
   
if (_.isFunction(pDef['onBlur'])) { if (_.isFunction(pDef['onBlur'])) {
...@@ -31060,6 +31060,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31060,6 +31060,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param event * @param event
*/ */
function onPropertyChange(event) { function onPropertyChange(event) {
$(this).addClass("focus");
updateSelectedItemProp(event.data.pName); updateSelectedItemProp(event.data.pName);
} }
   
...@@ -31094,7 +31095,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31094,7 +31095,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
if (_.isFunction(pDef.onChange)) { if (_.isFunction(pDef.onChange)) {
elem.on('change', pDef.onChange); elem.on('change', pDef.onChange);
} else { } else {
elem.on('change', null, {pName: pName}, onPropertyChange); var elemBtn = elem.find(".btn-cat");
if (elemBtn) {
elem.find(".btn-cat").on('change', null, {pName: pName}, onPropertyChange);
}else{
elem.on('change', null, {pName: pName}, onPropertyChange);
}
} }
   
if (_.isFunction(pDef['onBlur'])) { if (_.isFunction(pDef['onBlur'])) {
...@@ -31060,6 +31060,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31060,6 +31060,7 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
* @param event * @param event
*/ */
function onPropertyChange(event) { function onPropertyChange(event) {
$(this).addClass("focus");
updateSelectedItemProp(event.data.pName); updateSelectedItemProp(event.data.pName);
} }
   
...@@ -31094,7 +31095,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export ...@@ -31094,7 +31095,12 @@ function($, _, Signal, paper, config, view, io, tools, attributes, Users, export
if (_.isFunction(pDef.onChange)) { if (_.isFunction(pDef.onChange)) {
elem.on('change', pDef.onChange); elem.on('change', pDef.onChange);
} else { } else {
elem.on('change', null, {pName: pName}, onPropertyChange); var elemBtn = elem.find(".btn-cat");
if (elemBtn) {
elem.find(".btn-cat").on('change', null, {pName: pName}, onPropertyChange);
}else{
elem.on('change', null, {pName: pName}, onPropertyChange);
}
} }
   
if (_.isFunction(pDef['onBlur'])) { if (_.isFunction(pDef['onBlur'])) {
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