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 | 178 | = |
| 179 | 179 | if button is jQuery_button(bt_type, id, name, label, actioner, primary, secondary) then |
| 180 | 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 | 182 | if jquery_icon_to_string(primary) = "" then |
| 182 | 183 | if jquery_icon_to_string(secondary) = "" then |
| 183 | 184 | partial_content( |
| ... | ... | @@ -185,7 +186,9 @@ public define HTML_Partial_Content |
| 185 | 186 | js_inline(jquery_ready("$('#"+id+"').button();")), |
| 186 | 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 | 193 | else |
| 191 | 194 | partial_content( |
| ... | ... | @@ -193,7 +196,8 @@ public define HTML_Partial_Content |
| 193 | 196 | js_inline(jquery_ready("$('#"+id+"').button({icons:{secondary:'"+jquery_icon_to_string(secondary)+"'}});")), |
| 194 | 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 | 202 | else |
| 199 | 203 | if jquery_icon_to_string(secondary) = "" then |
| ... | ... | @@ -202,7 +206,8 @@ public define HTML_Partial_Content |
| 202 | 206 | js_inline(jquery_ready("$('#"+id+"').button({icons:{primary:'"+jquery_icon_to_string(primary)+"'}});")), |
| 203 | 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 | 212 | else |
| 208 | 213 | partial_content( |
| ... | ... | @@ -210,7 +215,8 @@ public define HTML_Partial_Content |
| 210 | 215 | js_inline(jquery_ready("$('#"+id+"').button({icons:{primary:'"+jquery_icon_to_string(primary)+"',secondary:'"+jquery_icon_to_string(secondary)+"'}});")), |
| 211 | 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 | ... | ... |