Changeset 5707

Show
Ignore:
Timestamp:
03/17/08 10:18:37 (8 months ago)
Author:
uta
Message:

2008/03/17 sync

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • rubricks_core/trunk/components/system/login_controller.rb

    r5702 r5707  
    145145 
    146146  def login_plain 
    147     login_result = RubricksLib.login({:login_id => params[:login][:login_name], :login_pw => params[:login][:raw_password]}) 
     147    input_data      = params[:login] 
     148    input_data      = input_data.json2ruby.symbolize_keys if input_data.is_a?(String) 
     149    login_result    = RubricksLib.login({:login_id => input_data[:login_name], :login_pw => input_data[:raw_password]}) 
    148150    if login_result[:login_message].blank? 
    149151      Thread.current[:current_user] = login_result[:user] 
  • rubricks_core/trunk/languages/chinese.rb

    r5702 r5707  
    1717      '_Common_Admit_Return_Confirm'            => '确实芁退回吗', 
    1818      '_Common_Admit_Confirm'                   => '确实芁批准吗', 
     19      '_Common_AjaxUploader_Failed'             => '文件䞍正确、升级倱莥。', 
    1920      '_Common_Application'                     => '应甚', 
    2021      '_Common_Approval_Return_Failed'          => '%s退回倱莥。', 
  • rubricks_core/trunk/public/javascripts/components/system/src_system_admin_menu.js

    r5695 r5707  
    8686    objDiv.appendChild(objSpan); 
    8787    objLi.appendChild(objDiv); 
    88     objScript               = document.createElement('script'); 
    89     objScript.type          = 'text/javascript'; 
    90     objScript.text          = "rubricks.common.Rollover.swap('new_item_" + this.menu_item_create_count + "_edit_form'); rubricks.common.Rollover.swap('new_item_" + this.menu_item_create_count + "_delete_form');"; 
    91     objLi.appendChild(objScript); 
    9288    objDiv                  = document.createElement('div'); 
    9389    objDiv.id               = 'new_item_' + this.menu_item_create_count + '_title'; 
     
    10298    $('sortable_item_list_' + menu_icon_id).appendChild(objLi); 
    10399    this.sortable_menus.refresh(); 
     100    this.menu_item_create_swap(); 
    104101    this.menu_item_create_count++; 
     102  }, 
     103  menu_item_create_swap: function() { 
     104    rubricks.common.Rollover.swap('new_item_' + this.menu_item_create_count + '_edit_form'); 
     105    rubricks.common.Rollover.swap('new_item_' + this.menu_item_create_count + '_delete_form'); 
    105106  }, 
    106107  menu_item_delete: function(button_id) { 
  • rubricks_core/trunk/public/javascripts/components/system/system.js

    r5695 r5707  
    457457_8.appendChild(_9); 
    458458_7.appendChild(_8); 
    459 _a=document.createElement("script"); 
    460 _a.type="text/javascript"; 
    461 _a.text="rubricks.common.Rollover.swap('new_item_"+this.menu_item_create_count+"_edit_form'); rubricks.common.Rollover.swap('new_item_"+this.menu_item_create_count+"_delete_form');"; 
    462 _7.appendChild(_a); 
    463459_8=document.createElement("div"); 
    464460_8.id="new_item_"+this.menu_item_create_count+"_title"; 
     
    473469$("sortable_item_list_"+_6).appendChild(_7); 
    474470this.sortable_menus.refresh(); 
     471this.menu_item_create_swap(); 
    475472this.menu_item_create_count++; 
     473},menu_item_create_swap:function(){ 
     474rubricks.common.Rollover.swap("new_item_"+this.menu_item_create_count+"_edit_form"); 
     475rubricks.common.Rollover.swap("new_item_"+this.menu_item_create_count+"_delete_form"); 
    476476},menu_item_delete:function(_b){ 
    477477var _c=_b.replace("_delete_button",""); 
  • rubricks_core/trunk/public/javascripts/spinelz/calendar.js

    r5695 r5707  
    877877_f9=_f9.join(" "); 
    878878_fb=_fb.inject("",function(_fd,_fe){ 
    879 return _fd+" "+_fe.key+"='"+_fe.value+"'"; 
    880 }); 
    881 return "<td class='"+_f9+"'"+_fb+">"+_f4.getDate()+"</td>"; 
     879return _fd+" "+_fe.key+"=\""+_fe.value+"\""; 
     880}); 
     881return "<td class=\""+_f9+"\""+_fb+">"+_f4.getDate()+"</td>"; 
    882882},beforeBuild:function(){ 
    883883this.column={}; 
  • rubricks_core/trunk/public/javascripts/spinelz/spinelz_for_rubricks.js

    r5702 r5707  
    11871187_f9=_f9.join(" "); 
    11881188_fb=_fb.inject("",function(_fd,_fe){ 
    1189 return _fd+" "+_fe.key+"='"+_fe.value+"'"; 
    1190 }); 
    1191 return "<td class='"+_f9+"'"+_fb+">"+_f4.getDate()+"</td>"; 
     1189return _fd+" "+_fe.key+"=\""+_fe.value+"\""; 
     1190}); 
     1191return "<td class=\""+_f9+"\""+_fb+">"+_f4.getDate()+"</td>"; 
    11921192},beforeBuild:function(){ 
    11931193this.column={}; 
  • rubricks_core/trunk/public/javascripts/src_spinelz/calendar.js

    r5695 r5707  
    12481248    className = className.join(' '); 
    12491249    attributes = attributes.inject('', function(html, pair) { 
    1250       return html + " " + pair.key + "='" + pair.value + "'"; 
    1251     }); 
    1252     return "<td class='" + className + "'" + attributes + ">" + date.getDate() + "</td>"; 
     1250      return html + " " + pair.key + "=\"" + pair.value + "\""; 
     1251    }); 
     1252    return "<td class=\"" + className + "\"" + attributes + ">" + date.getDate() + "</td>"; 
    12531253  }, 
    12541254 
  • rubricks_core/trunk/vendor/plugins/rubricks/lib/action_view_realtime_validator_helper.rb

    r5695 r5707  
    588588        msg = (value.class == Hash) ? value[:msg] : '[_Common_Validate_Required]' 
    589589        res = <<-"EOS" 
     590          if (!UserAgent.isIE() && element.value && element.value.match(/^\\n$/)) { 
     591            element.value = ' '; 
     592            element.value = ''; 
     593          } 
    590594          if (element.value == null || element.value == '') { 
    591595            return _box['validates_#{@validator_name}_error']('#{css_id}', element) + '#{msg}';