1
0
Prechádzať zdrojové kódy

helios: removed commit button already present in the menu

Nicolas Petton 11 rokov pred
rodič
commit
38462081bf
3 zmenil súbory, kde vykonal 0 pridanie a 63 odobranie
  1. 0 24
      js/Helios-Browser.deploy.js
  2. 0 29
      js/Helios-Browser.js
  3. 0 10
      st/Helios-Browser.st

+ 0 - 24
js/Helios-Browser.deploy.js

@@ -2503,30 +2503,6 @@ return self}, function($ctx1) {$ctx1.fill(self,"onPackagesFocusRequested",{},sma
 messageSends: ["focus"]}),
 smalltalk.HLPackagesListWidget);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "renderButtonsOn:",
-fn: function (html){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $1,$3,$4,$2;
-$1=_st(html)._div();
-_st($1)._class_("buttons");
-$2=_st($1)._with_((function(){
-return smalltalk.withContext(function($ctx2) {
-$3=_st(html)._button();
-_st($3)._class_("btn");
-_st($3)._with_("Commit");
-$4=_st($3)._onClick_((function(){
-return smalltalk.withContext(function($ctx3) {
-return _st(self)._commitPackage();
-}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
-return $4;
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLPackagesListWidget)})},
-messageSends: ["class:", "div", "with:", "button", "onClick:", "commitPackage"]}),
-smalltalk.HLPackagesListWidget);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "renderItemLabel:on:",

+ 0 - 29
js/Helios-Browser.js

@@ -3253,35 +3253,6 @@ referencedClasses: []
 }),
 smalltalk.HLPackagesListWidget);
 
-smalltalk.addMethod(
-smalltalk.method({
-selector: "renderButtonsOn:",
-category: 'rendering',
-fn: function (html){
-var self=this;
-return smalltalk.withContext(function($ctx1) { 
-var $1,$3,$4,$2;
-$1=_st(html)._div();
-_st($1)._class_("buttons");
-$2=_st($1)._with_((function(){
-return smalltalk.withContext(function($ctx2) {
-$3=_st(html)._button();
-_st($3)._class_("btn");
-_st($3)._with_("Commit");
-$4=_st($3)._onClick_((function(){
-return smalltalk.withContext(function($ctx3) {
-return _st(self)._commitPackage();
-}, function($ctx3) {$ctx3.fillBlock({},$ctx1)})}));
-return $4;
-}, function($ctx2) {$ctx2.fillBlock({},$ctx1)})}));
-return self}, function($ctx1) {$ctx1.fill(self,"renderButtonsOn:",{html:html},smalltalk.HLPackagesListWidget)})},
-args: ["html"],
-source: "renderButtonsOn: html\x0a\x09html div \x0a\x09\x09class: 'buttons';\x0a\x09\x09with: [\x0a\x09\x09\x09html button \x0a\x09\x09\x09\x09class: 'btn';\x0a\x09\x09\x09\x09with: 'Commit';\x0a\x09\x09\x09\x09onClick: [ self commitPackage ] ]",
-messageSends: ["class:", "div", "with:", "button", "onClick:", "commitPackage"],
-referencedClasses: []
-}),
-smalltalk.HLPackagesListWidget);
-
 smalltalk.addMethod(
 smalltalk.method({
 selector: "renderItemLabel:on:",

+ 0 - 10
st/Helios-Browser.st

@@ -1164,16 +1164,6 @@ onPackagesFocusRequested
 
 !HLPackagesListWidget methodsFor: 'rendering'!
 
-renderButtonsOn: html
-	html div 
-		class: 'buttons';
-		with: [
-			html button 
-				class: 'btn';
-				with: 'Commit';
-				onClick: [ self commitPackage ] ]
-!
-
 renderItemLabel: aPackage on: html
 	html with: aPackage name
 ! !