Permalink
Browse files

added popover for new configs

  • Loading branch information...
1 parent bf47c72 commit 302cc3c0af7ac0faddfc8de8335470a2c27800a7 @brandonmwest committed Apr 1, 2012
Showing with 9 additions and 5 deletions.
  1. +1 −1 index.rb
  2. +7 −3 public/js/default.js
  3. +1 −1 views/layout.haml
View
@@ -15,7 +15,7 @@
end
post '/' do
- @version = settings.version
+ @version = settings.version
@show_bottom_bar = true
unless params[:file] &&
(tmpfile = params[:file][:tempfile]) &&
View
@@ -6,7 +6,11 @@ $(function() {
$('.endpointActuator').live('click', showEndpoint);
//tooltip for add endpoint button
- $('#addEndpoint').hover(toggleTooltip, toggleTooltip)
+ if($('.endpoint').length==0) {
+ $('#addEndpoint').popover({"trigger":"manual", "content":"Get started by adding your first endpoint!"});
+ $('#addEndpoint').popover('show');
+ $('#addEndpoint').click(hideEndpointPopover);
+ }
//save file button
$('.save-file').click(saveFile);
@@ -40,8 +44,8 @@ var saveFile = function(){
$('#outputForm').submit();
}
-var toggleTooltip = function(e){
- $(e.target).tooltip('toggle');
+var hideEndpointPopover = function(e){
+ $("#addEndpoint").popover('hide');
}
var showAbout = function() {
View
@@ -54,7 +54,7 @@
Click an item from the menu on the left to begin editing. View the JSON output at any time by hitting the "output" tab. When finished, click "Save File" to download the JSON file. I/O Doctor does not store any data. Make sure you save your JSON output.
.modal-footer
- .btn.close Close
+ .btn.btn-primary.close Close
-if @show_bottom_bar
.bottom-bar

0 comments on commit 302cc3c

Please sign in to comment.