|
@@ -6437,17 +6437,18 @@ $1=".dialog"._asJQuery();
|
|
$ctx1.sendIdx["asJQuery"]=1;
|
|
$ctx1.sendIdx["asJQuery"]=1;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
$recv($1)._removeClass_("active");
|
|
$recv($1)._removeClass_("active");
|
|
-$recv((function(){
|
|
|
|
-//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
-return $core.withContext(function($ctx2) {
|
|
|
|
-//>>excludeEnd("ctx");
|
|
|
|
|
|
+$recv($globals.HLModalWidget)._current_(nil);
|
|
$2="#overlay"._asJQuery();
|
|
$2="#overlay"._asJQuery();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
-$ctx2.sendIdx["asJQuery"]=2;
|
|
|
|
|
|
+$ctx1.sendIdx["asJQuery"]=2;
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
$recv($2)._remove();
|
|
$recv($2)._remove();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
-$ctx2.sendIdx["remove"]=1;
|
|
|
|
|
|
+$ctx1.sendIdx["remove"]=1;
|
|
|
|
+//>>excludeEnd("ctx");
|
|
|
|
+$recv((function(){
|
|
|
|
+//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
|
+return $core.withContext(function($ctx2) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
return $recv($recv($self.wrapper)._asJQuery())._remove();
|
|
return $recv($recv($self.wrapper)._asJQuery())._remove();
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -6461,11 +6462,11 @@ return self;
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: [],
|
|
args: [],
|
|
-source: "remove\x0a\x09'.dialog' asJQuery removeClass: 'active'.\x0a\x09[ \x0a\x09\x09'#overlay' asJQuery remove.\x0a\x09\x09wrapper asJQuery remove\x0a\x09] valueWithTimeout: 300",
|
|
|
|
-referencedClasses: [],
|
|
|
|
|
|
+source: "remove\x0a\x09'.dialog' asJQuery removeClass: 'active'.\x0a\x09HLModalWidget current: nil.\x0a\x09'#overlay' asJQuery remove.\x0a\x09[ \x0a\x09\x09wrapper asJQuery remove\x0a\x09] valueWithTimeout: 300",
|
|
|
|
+referencedClasses: ["HLModalWidget"],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
pragmas: [],
|
|
pragmas: [],
|
|
-messageSends: ["removeClass:", "asJQuery", "valueWithTimeout:", "remove"]
|
|
|
|
|
|
+messageSends: ["removeClass:", "asJQuery", "current:", "remove", "valueWithTimeout:"]
|
|
}),
|
|
}),
|
|
$globals.HLModalWidget);
|
|
$globals.HLModalWidget);
|
|
|
|
|
|
@@ -6601,6 +6602,16 @@ var self=this,$self=this;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
return $core.withContext(function($ctx1) {
|
|
return $core.withContext(function($ctx1) {
|
|
//>>excludeEnd("ctx");
|
|
//>>excludeEnd("ctx");
|
|
|
|
+var $1,$receiver;
|
|
|
|
+$1=$recv($globals.HLModalWidget)._current();
|
|
|
|
+if(($receiver = $1) == null || $receiver.a$nil){
|
|
|
|
+$1;
|
|
|
|
+} else {
|
|
|
|
+var old;
|
|
|
|
+old=$receiver;
|
|
|
|
+$recv(old)._remove();
|
|
|
|
+}
|
|
|
|
+$recv($globals.HLModalWidget)._current_(self);
|
|
$self._appendToJQuery_("body"._asJQuery());
|
|
$self._appendToJQuery_("body"._asJQuery());
|
|
return self;
|
|
return self;
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
@@ -6609,15 +6620,55 @@ return self;
|
|
},
|
|
},
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
args: [],
|
|
args: [],
|
|
-source: "show\x0a\x09self appendToJQuery: 'body' asJQuery",
|
|
|
|
-referencedClasses: [],
|
|
|
|
|
|
+source: "show\x0a\x09HLModalWidget current ifNotNil: [ :old | old remove ].\x0a\x09HLModalWidget current: self.\x0a\x09self appendToJQuery: 'body' asJQuery",
|
|
|
|
+referencedClasses: ["HLModalWidget"],
|
|
//>>excludeEnd("ide");
|
|
//>>excludeEnd("ide");
|
|
pragmas: [],
|
|
pragmas: [],
|
|
-messageSends: ["appendToJQuery:", "asJQuery"]
|
|
|
|
|
|
+messageSends: ["ifNotNil:", "current", "remove", "current:", "appendToJQuery:", "asJQuery"]
|
|
}),
|
|
}),
|
|
$globals.HLModalWidget);
|
|
$globals.HLModalWidget);
|
|
|
|
|
|
|
|
|
|
|
|
+$core.setSlots($globals.HLModalWidget.a$cls, ["current"]);
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "current",
|
|
|
|
+protocol: "accessing",
|
|
|
|
+fn: function (){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+return $self.current;
|
|
|
|
+
|
|
|
|
+},
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: [],
|
|
|
|
+source: "current\x0a\x09^ current",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: []
|
|
|
|
+}),
|
|
|
|
+$globals.HLModalWidget.a$cls);
|
|
|
|
+
|
|
|
|
+$core.addMethod(
|
|
|
|
+$core.method({
|
|
|
|
+selector: "current:",
|
|
|
|
+protocol: "accessing",
|
|
|
|
+fn: function (anHLModelWidget){
|
|
|
|
+var self=this,$self=this;
|
|
|
|
+$self.current=anHLModelWidget;
|
|
|
|
+return self;
|
|
|
|
+
|
|
|
|
+},
|
|
|
|
+//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
|
+args: ["anHLModelWidget"],
|
|
|
|
+source: "current: anHLModelWidget\x0a\x09current := anHLModelWidget",
|
|
|
|
+referencedClasses: [],
|
|
|
|
+//>>excludeEnd("ide");
|
|
|
|
+pragmas: [],
|
|
|
|
+messageSends: []
|
|
|
|
+}),
|
|
|
|
+$globals.HLModalWidget.a$cls);
|
|
|
|
+
|
|
|
|
|
|
$core.addClass("HLConfirmationWidget", $globals.HLModalWidget, ["cancelButtonLabel", "confirmButtonLabel", "confirmationString", "actionBlock", "cancelBlock"], "Helios-Core");
|
|
$core.addClass("HLConfirmationWidget", $globals.HLModalWidget, ["cancelButtonLabel", "confirmButtonLabel", "confirmationString", "actionBlock", "cancelBlock"], "Helios-Core");
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|