Skip to content

Commit

Permalink
js fix plus some appearance for buttons in mailshare
Browse files Browse the repository at this point in the history
  • Loading branch information
VictorGarcia committed Sep 3, 2012
1 parent 3384797 commit 0ee0498
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
2 changes: 1 addition & 1 deletion application/views/scripts/form/mailshare.phtml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<?php endforeach; ?>
</div>
<dd id="<?php echo ($form->getName() ? $form->getName() . '-': null); ?>submit-element">
<?php echo $form->submit->renderViewHelper(); ?> <a href="#" class="delete" data-mail="<?php echo $form->getRecord()->id; ?>">Delete</a>
<?php echo $form->submit->renderViewHelper(); ?> <a href="#" class="delete btn btn-danger" data-mail="<?php echo $form->getRecord()->id; ?>">Delete</a>
</dd>
</form>
</div>
7 changes: 3 additions & 4 deletions library/Aw/Form/Abstract.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@ public function init() {
}

protected function _addSubmit() {
$submit = new Zend_Form_Element_Submit('submit');
$submit = new Zend_Form_Element_Button('submit');
$submit
->setLabel('Submit')
->setOrder(999)
->setAttribs(array('class' => 'btn'))
->setAttribs(array('class' => 'btn', 'type' => 'submit'))
;



$this->addElements(array($submit));
}

Expand Down
3 changes: 1 addition & 2 deletions public/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@ require.config({
'jquery.slider': '/contrib/selectToUiSlider/js/selectToUISlider.jQuery',
'jwerty': '/contrib/jwerty/jwerty',
'masonry': '/contrib/masonry-site/jquery.masonry',
'google.map': 'http://maps.googleapis.com/maps/api/js?sensor=true&amp;libraries=places',
'simplemodal': '/js/jquery.simplemodal.1.4.2.min'
'google.map': 'http://maps.googleapis.com/maps/api/js?sensor=true&amp;libraries=places'
},
shim: {

Expand Down

0 comments on commit 0ee0498

Please sign in to comment.