Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Customize control buttons tag "buttons" or "a", to simply use twitter…
… bootstrap icons
- Loading branch information
Showing
2 changed files
with
46 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<!doctype html> | ||
<html> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | ||
<title>jQuery: Inline Edit Plugin Demo</title> | ||
<link rel="stylesheet" href="http://yelotofu.com/labs/jquery/master.css" media="screen"> | ||
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.1.1/css/bootstrap.min.css" rel="stylesheet"> | ||
<style type="text/css"> | ||
.ui-state-hover { background-color: #ffC } | ||
.inlineEdit-placeholder { font-style: italic; color: #555; } | ||
</style> | ||
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.5.1/jquery.min.js"></script> | ||
<script type="text/javascript" src="../jquery.inlineedit.js"></script> | ||
<script type="text/javascript"> | ||
|
||
$(function(){ | ||
$('.editable').inlineEdit({ | ||
buttons: '<a href="#" class="save"><i class="icon-ok"></i></a> <a href="#" class="cancel"><i class="icon-remove"></i></a>', | ||
buttonsTag: 'a' | ||
}); | ||
}); | ||
|
||
</script> | ||
</head> | ||
<body> | ||
<div id="page"> | ||
<div id="header"> | ||
<h1>jQuery: Inline Edit Plugin Demo</h1> | ||
</div> | ||
<div id="content"> | ||
<p>A demonstration of the inline edit plugin.</p> | ||
<table> | ||
<tr><td><span class="editable">Joe Blogg</span></td></tr> | ||
<tr><td><span class="editable">John Doe</span></td></tr> | ||
<tr><td><span class="editable">Paul White</span></td></tr> | ||
<tr><td><span class="editable"></span></td></tr> | ||
</table> | ||
<br /><br /> | ||
<p><a href="http://yelotofu.com/2009/08/jquery-inline-edit-tutorial/">Read original blog post</a></p> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters