all none fixed

This commit is contained in:
Harry Bomrah 2013-03-06 11:32:53 +08:00 committed by Matt K. Fu
parent dc68f40cb4
commit 52789fa032
2 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,7 @@
<div class="toolbar hh1">
<div class="fn_g hp">
<%= f.submit t("save"), name: "commit", class: "fn_btn ini_input hp hh1 thmc2 thmtxt" %>
<%= f.submit t("save"), name: "commit", value: "Save", class: "fn_btn ini_input hp hh1 thmc2 thmtxt" %>
<!-- class: bt-cancle can't be remove -->
<% if not @writing_conference.new_record? %>
<%= submit_tag t("cancel"), :type => "button", "callback-method"=>"cancelpaper", "ajax-remote" => "get", :href => panel_personal_conference_desktop_conference_pages_path, class: "ini_input hp hh1 thmadm thmtxt" %>
<% end %>

View File

@ -227,6 +227,16 @@ orbitDesktop.prototype.initializeJournalPapers = function(target,url,cache){ //
break;
}
}
this.initializeJournalPapers.allnone = function(d,o){
switch(o.attr("href")){
case "all":
$("div.overview a.icon-check-empty").removeClass("icon-check-empty").addClass("icon-check");
break;
case "none":
$("div.overview a.icon-check").removeClass("icon-check").addClass("icon-check-empty");
break;
}
}
};