Skip to content
This repository has been archived by the owner on Apr 16, 2019. It is now read-only.

Commit

Permalink
Merge pull request #1 from EvilGuyWhoEatsBrains/EvilGuyWhoEatsBrains-…
Browse files Browse the repository at this point in the history
…patch-1

Update af.ui.js
  • Loading branch information
Pat authored and Pat committed Apr 8, 2015
2 parents a72c492 + b18e025 commit 22edc01
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/af.ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -1043,10 +1043,12 @@
//get first div, defer

var first=$(".view[data-default='true']");
if(first.length===0)
if(first.length===0) {
first=$(".view").eq(0);
else
throw ("You need to create a view");

if(first.length===0)
throw ("You need to create a view");
}

first.addClass("active");
//history
Expand Down

0 comments on commit 22edc01

Please sign in to comment.