资源库
This commit is contained in:
parent
43d57074e5
commit
3836cfb40b
|
@ -1,6 +1,6 @@
|
||||||
<%= form_tag( url_for(:controller => 'users',:action => 'resource_search',:id=>user.id),
|
<%= form_tag( url_for(:controller => 'users',:action => 'resource_search',:id=>user.id),
|
||||||
:remote=>true ,:method => 'post',:class=>'resourcesSearchloadBox',:id=>'resource_search_form') do %>
|
:remote=>true ,:method => 'post',:class=>'resourcesSearchloadBox',:id=>'resource_search_form') do %>
|
||||||
<input type="text" name="search" placeholder="输入资源关键词进行" class="searchResource" />
|
<input type="text" name="search" placeholder="输入资源关键词进行搜索" class="searchResource" />
|
||||||
<%= hidden_field_tag(:type,type) %>
|
<%= hidden_field_tag(:type,type) %>
|
||||||
<%= submit_tag '',:class=>'searchIcon',:style=>'border-style:none' %>
|
<%= submit_tag '',:class=>'searchIcon',:style=>'border-style:none' %>
|
||||||
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
|
<!--<a href="javascript:void(0);" onclick='this.parent.submit();return false;' class="searchIcon"></a>-->
|
||||||
|
|
|
@ -216,7 +216,10 @@ $(".resourcesList").click(function(e) {
|
||||||
function restore(){
|
function restore(){
|
||||||
//上一行不为空 且链接不为空
|
//上一行不为空 且链接不为空
|
||||||
if( last_line != null && res_link != null && res_link != '') {
|
if( last_line != null && res_link != null && res_link != '') {
|
||||||
name = $("#res_name") ? $("#res_name").val().trim() : $("#res_name") ;
|
name = $("#res_name").lenght != 0 && $("#res_name").val() != undefined ? $("#res_name").val().trim() : undefined ;
|
||||||
|
if (name == undefined || name === 'undefined' ){ //只要res_name没有值,那么就不是编辑状态
|
||||||
|
return;
|
||||||
|
}
|
||||||
if( name && name != res_name.trim()){
|
if( name && name != res_name.trim()){
|
||||||
|
|
||||||
if(confirm('确定修改为 '+name)){
|
if(confirm('确定修改为 '+name)){
|
||||||
|
|
Loading…
Reference in New Issue