Browse Source

Fix purge + refresh of define info

pull/1/head
Scott Lahteine 10 years ago
parent
commit
90fa1345b0
  1. 10
      Marlin/configurator/js/configurator.js

10
Marlin/configurator/js/configurator.js

@ -523,8 +523,9 @@ var configuratorApp = (function(){
*/
purgeDefineInfo: function(adv) {
if (adv === undefined) adv = false;
$('[defineInfo]').each(function() {
if (adv === this.defineInfo.adv) $(this).removeProp('defineInfo');
$('[name]').each(function() {
var inf = this.defineInfo;
if (inf && adv === inf.adv) $(this).removeProp('defineInfo');
});
},
@ -533,8 +534,9 @@ var configuratorApp = (function(){
*/
refreshDefineInfo: function(adv) {
if (adv === undefined) adv = false;
$('[defineInfo]').each(function() {
if (adv == this.defineInfo.adv) this.defineInfo = self.getDefineInfo(this.id, adv);
$('[name]').each(function() {
var inf = this.defineInfo;
if (inf && adv == inf.adv) this.defineInfo = self.getDefineInfo(this.id, adv);
});
},

Loading…
Cancel
Save