diff --git a/app/views/courses/join_private_courses.js.erb b/app/views/courses/join_private_courses.js.erb index 7bbb5ee99..0cf723f6b 100644 --- a/app/views/courses/join_private_courses.js.erb +++ b/app/views/courses/join_private_courses.js.erb @@ -1,4 +1,3 @@ $('#ajax-modal').html('<%= escape_javascript(render :partial => 'join_private_course') %>'); showModal('ajax-modal', '510px'); -$('#ajax-modal').addClass('new-watcher'); $('#ajax-modal').css('height','330px'); \ No newline at end of file diff --git a/app/views/files/index.html.erb b/app/views/files/index.html.erb index 9d6d9f2b3..fcf54de75 100644 --- a/app/views/files/index.html.erb +++ b/app/views/files/index.html.erb @@ -54,7 +54,7 @@ if (textStatus == 'success') { eval(xhr.responseText); } else if (textStatus == 'error') { - alert('error'); +// alert('error'); } } diff --git a/app/views/school/index.html.erb b/app/views/school/index.html.erb index 15a76a3d4..97035ebc2 100644 --- a/app/views/school/index.html.erb +++ b/app/views/school/index.html.erb @@ -5,7 +5,7 @@ $("#province").html(""); $.ajax({ type :"POST", - url :'/school/get_province', + url :'http://<%= Setting.host_name %>/school/get_province', data: "send", success: function(data, textStatus){ @@ -22,7 +22,7 @@ function get_school(value){ $.ajax({ type :"POST", - url :'/school/get_schoollist/'+encodeURIComponent(value), + url :'http://<%= Setting.host_name %>/school/get_schoollist/'+encodeURIComponent(value), data :'text', success: function(data){ $("#schoollist").html(data); @@ -39,7 +39,7 @@ @@ -57,7 +57,7 @@ //alert(province); $.ajax({ type :"POST", - url :'/school/search_school/?key_word='+encodeURIComponent(value)+'&province='+province, + url :'http://<%= Setting.host_name %>/school/search_school/?key_word='+encodeURIComponent(value)+'&province='+province, data :'text', success: function(data){ $("#schoollist").html(data); @@ -80,7 +80,7 @@ <%= link_to l(:label_all_schol),school_index_path %>      <% if User.current.logged? %> - <%= l(:label_my_school) %> + <%= l(:label_my_school) %> <% end %>