From 5dde418424a9440abf9f24dcc4f33cd937efa36b Mon Sep 17 00:00:00 2001
From: mkhamash <m.khamash@gmail.com>
Date: Sun, 16 Feb 2014 20:24:16 +0200
Subject: [PATCH] Issue #2162789 by quanvm: Bootstrap for admin theme has a problem with field ui or ajax.

---
 theme/system/button.func.php |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/theme/system/button.func.php b/theme/system/button.func.php
index 02531a1..ae5c87a 100644
--- a/theme/system/button.func.php
+++ b/theme/system/button.func.php
@@ -12,6 +12,11 @@ function bootstrap_button($variables) {
   $label = $element['#value'];
   element_set_attributes($element, array('id', 'name', 'value', 'type'));
 
+  // making sure we don't override ajax input
+  if(isset($element['#op']) && $element['#op'] == 'refresh_table') {
+    return theme_button($variables);
+  }  
+
   // If a button type class isn't present then add in default.
   $button_classes = array(
     'btn-default',
-- 
1.7.2.5

