ipage 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +2 -2
- data/ipage.gemspec +2 -5
- data/lib/templates/app/helpers/application_helper.rb +208 -0
- data/lib/templates/app/views/layouts/application.html.erb +7 -5
- metadata +8 -11
- data/lib/templates/javascripts/framework/jquery-1.5.1.min.js +0 -16
- data/lib/templates/javascripts/test/tdd/qunit.js +0 -1412
- data/lib/templates/javascripts/test/tdd/window.js +0 -17
@@ -1,17 +0,0 @@
|
|
1
|
-
$(function(){
|
2
|
-
$('body').append('<div id="qunit_window" style="position:absolute;top:0px;margin: 0px auto;"><h1 id="qunit-header">Тесты</h1><h2 id="qunit-banner"></h2><div id="qunit-testrunner-toolbar"></div><h2 id="qunit-userAgent"></h2><ol id="qunit-tests"></ol><div id="qunit-fixture">test markup, will be hidden</div></div>');
|
3
|
-
$('#qunit_window').hide();
|
4
|
-
$(document).keydown(function(event){
|
5
|
-
//alert(event.keyCode);
|
6
|
-
if(event.keyCode==192){
|
7
|
-
$('#qunit_window').toggle();
|
8
|
-
}
|
9
|
-
});
|
10
|
-
QUnit.done=function(){
|
11
|
-
var error_count = $('div#qunit_window span.failed').text();
|
12
|
-
if(error_count!='0'){
|
13
|
-
$('#qunit_window').show();
|
14
|
-
}
|
15
|
-
}
|
16
|
-
|
17
|
-
});
|