aboutsummaryrefslogtreecommitdiffstats
path: root/demos/tabs/manipulation.html
diff options
context:
space:
mode:
Diffstat (limited to 'demos/tabs/manipulation.html')
-rw-r--r--demos/tabs/manipulation.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/demos/tabs/manipulation.html b/demos/tabs/manipulation.html
index bb4bb34c7..e10621bf3 100644
--- a/demos/tabs/manipulation.html
+++ b/demos/tabs/manipulation.html
@@ -22,7 +22,7 @@
var tabs = $( "#tabs" ).tabs();
- // modal dialog init: custom buttons and a "close" callback resetting the form inside
+ // Modal dialog init: custom buttons and a "close" callback resetting the form inside
var dialog = $( "#dialog" ).dialog({
autoOpen: false,
modal: true,
@@ -40,14 +40,14 @@
}
});
- // addTab form: calls addTab function on submit and closes the dialog
+ // AddTab form: calls addTab function on submit and closes the dialog
var form = dialog.find( "form" ).on( "submit", function( event ) {
addTab();
dialog.dialog( "close" );
event.preventDefault();
});
- // actual addTab function: adds new tab using the input from the form above
+ // Actual addTab function: adds new tab using the input from the form above
function addTab() {
var label = tabTitle.val() || "Tab " + tabCounter,
id = "tabs-" + tabCounter,
@@ -60,14 +60,14 @@
tabCounter++;
}
- // addTab button: just opens the dialog
+ // AddTab button: just opens the dialog
$( "#add_tab" )
.button()
.on( "click", function() {
dialog.dialog( "open" );
});
- // close icon: removing the tab on click
+ // Close icon: removing the tab on click
tabs.on( "click", "span.ui-icon-close", function() {
var panelId = $( this ).closest( "li" ).remove().attr( "aria-controls" );
$( "#" + panelId ).remove();