Commit 5312282eebac11dc2eec249c7ae063f3f69c49c2
1 parent
6f62d60d
enhance the visual style of generic jquery_button by wrapping the content inside…
… a table and adding "cellspacing" attribute to the table
Showing
1 changed file
with
10 additions
and
4 deletions
Show diff stats
web/jQuery/CXM_jquery_button.anubis
| @@ -178,6 +178,7 @@ public define HTML_Partial_Content | @@ -178,6 +178,7 @@ public define HTML_Partial_Content | ||
| 178 | = | 178 | = |
| 179 | if button is jQuery_button(bt_type, id, name, label, actioner, primary, secondary) then | 179 | if button is jQuery_button(bt_type, id, name, label, actioner, primary, secondary) then |
| 180 | with onclick_action=jquery_button_get_onclick_action(id, actioner), | 180 | with onclick_action=jquery_button_get_onclick_action(id, actioner), |
| 181 | + btn_seq = (HTML_Off_Form)sequence([literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\" name=\""+name+"\">"), table([attr("cellspacing", "5")], [row([cell(text(label))])]), literal("</button>")]), | ||
| 181 | if jquery_icon_to_string(primary) = "" then | 182 | if jquery_icon_to_string(primary) = "" then |
| 182 | if jquery_icon_to_string(secondary) = "" then | 183 | if jquery_icon_to_string(secondary) = "" then |
| 183 | partial_content( | 184 | partial_content( |
| @@ -185,7 +186,9 @@ public define HTML_Partial_Content | @@ -185,7 +186,9 @@ public define HTML_Partial_Content | ||
| 185 | js_inline(jquery_ready("$('#"+id+"').button();")), | 186 | js_inline(jquery_ready("$('#"+id+"').button();")), |
| 186 | onclick_action | 187 | onclick_action |
| 187 | ], | 188 | ], |
| 188 | - literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\" name=\""+name+"\">"+label+"</button>") | 189 | + btn_seq |
| 190 | + //sequence([literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\" name=\""+name+"\">"), table([attr("cellspacing", "5")], [row([cell(text(label))])]), literal("</button>")]) | ||
| 191 | + //literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\" name=\""+name+"\">"+label+"</button>") | ||
| 189 | ) | 192 | ) |
| 190 | else | 193 | else |
| 191 | partial_content( | 194 | partial_content( |
| @@ -193,7 +196,8 @@ public define HTML_Partial_Content | @@ -193,7 +196,8 @@ public define HTML_Partial_Content | ||
| 193 | js_inline(jquery_ready("$('#"+id+"').button({icons:{secondary:'"+jquery_icon_to_string(secondary)+"'}});")), | 196 | js_inline(jquery_ready("$('#"+id+"').button({icons:{secondary:'"+jquery_icon_to_string(secondary)+"'}});")), |
| 194 | onclick_action | 197 | onclick_action |
| 195 | ], | 198 | ], |
| 196 | - literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\">"+label+"</button>") | 199 | + btn_seq |
| 200 | + //literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\">"+label+"</button>") | ||
| 197 | ) | 201 | ) |
| 198 | else | 202 | else |
| 199 | if jquery_icon_to_string(secondary) = "" then | 203 | if jquery_icon_to_string(secondary) = "" then |
| @@ -202,7 +206,8 @@ public define HTML_Partial_Content | @@ -202,7 +206,8 @@ public define HTML_Partial_Content | ||
| 202 | js_inline(jquery_ready("$('#"+id+"').button({icons:{primary:'"+jquery_icon_to_string(primary)+"'}});")), | 206 | js_inline(jquery_ready("$('#"+id+"').button({icons:{primary:'"+jquery_icon_to_string(primary)+"'}});")), |
| 203 | onclick_action | 207 | onclick_action |
| 204 | ], | 208 | ], |
| 205 | - literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\">"+label+"</button>") | 209 | + btn_seq |
| 210 | + //literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\">"+label+"</button>") | ||
| 206 | ) | 211 | ) |
| 207 | else | 212 | else |
| 208 | partial_content( | 213 | partial_content( |
| @@ -210,7 +215,8 @@ public define HTML_Partial_Content | @@ -210,7 +215,8 @@ public define HTML_Partial_Content | ||
| 210 | js_inline(jquery_ready("$('#"+id+"').button({icons:{primary:'"+jquery_icon_to_string(primary)+"',secondary:'"+jquery_icon_to_string(secondary)+"'}});")), | 215 | js_inline(jquery_ready("$('#"+id+"').button({icons:{primary:'"+jquery_icon_to_string(primary)+"',secondary:'"+jquery_icon_to_string(secondary)+"'}});")), |
| 211 | onclick_action | 216 | onclick_action |
| 212 | ], | 217 | ], |
| 213 | - literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\">"+label+"</button>") | 218 | + btn_seq |
| 219 | + //literal("<button type=\""+to_String(bt_type)+"\" id=\""+id+"\">"+label+"</button>") | ||
| 214 | ) | 220 | ) |
| 215 | . | 221 | . |
| 216 | 222 |