PluginProbe
ShiftController Employee Shift Scheduling / 4.9.61
ShiftController Employee Shift Scheduling v4.9.61
4.9.97 4.9.96 4.9.95 4.9.74 4.9.75 4.9.76 4.9.77 4.9.78 4.9.84 4.9.85 4.9.87 4.9.91 4.9.92 trunk 2.1.0 2.1.1 2.1.2 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.2.5 2.2.6 3.2.4 All 38 releases
← All changes | hc3/ui.php +2 -17 4.9.874.9.61 View file →
@@ -66,15 +66,11 @@
66 66 $return = array();
67 67
68 68 foreach( $menu as $k => $item ){
69 69 // form
70 - if( count($item) >= 3 ){
71 - $href = $item[0];
72 - $formContent = $item[1];
73 - $btnLabel = $item[2];
70 + if( count($item) == 3 ){
71 + list( $href, $formContent, $btnLabel ) = $item;
74 72
75 - $confirm = ( isset($item[3]) && $item[3] ) ? true : false;
76 -
77 73 if( ! $hidden ){
78 74 $btn = $this->makeInputSubmit($btnLabel)
79 75 ->tag('nice-link')
80 76 // ->tag('secondary')
@@ -79,13 +75,8 @@
79 75 ->tag('nice-link')
80 76 // ->tag('secondary')
81 77 // ->tag('align', 'left')
82 78 ;
83 -
84 - if( $confirm ){
85 - $btn->addAttr( 'onclick', ' return confirm(\'' . $btnLabel . '?\')' );
86 - }
87 -
88 79 $formContent = $formContent ? $this->makeListInline( array($formContent, $btn) ) : $btn;
89 80 }
90 81
91 82 $item = $this->makeForm( $href, $formContent );
@@ -364,14 +355,8 @@
364 355
365 356 public function makeInputText( $name, $label = NULL, $value = NULL )
366 357 {
367 358 $return = new HC3_Ui_Element_Input_Text( $this, $name, $label, $value );
368 - return $return;
369 - }
370 -
371 - public function makeInputNumber( $name, $label = NULL, $value = NULL )
372 - {
373 - $return = new HC3_Ui_Element_Input_Number( $this, $name, $label, $value );
374 359 return $return;
375 360 }
376 361
377 362 public function makeInputPassword( $name, $label = NULL )