neo-rails 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
var url_param = function(name){
|
8
8
|
var results = new RegExp('[\\?&]' + name + '=([^&#]*)').exec(window.location.href);
|
9
|
-
return results[1]
|
9
|
+
return results !== null && results[1];
|
10
10
|
};
|
11
11
|
|
12
12
|
$(function(){
|
@@ -17,7 +17,7 @@
|
|
17
17
|
});
|
18
18
|
|
19
19
|
var active_scenario = url_param("scenario");
|
20
|
-
if(active_scenario
|
20
|
+
if (active_scenario){
|
21
21
|
ui.addClass(SEL.open);
|
22
22
|
};
|
23
23
|
});
|
data/lib/neo/rails/version.rb
CHANGED