Skip to content

Commit

Permalink
[BUGFIX] Fix list price button "modify"
Browse files Browse the repository at this point in the history
  • Loading branch information
alberto committed May 13, 2013
1 parent 9a50fc2 commit 58ecc7e
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion webroot/js/views/priceList.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ window.EditPriceListView = Backbone.View.extend({
$(this).bind('submitForm', function(e,data){
if(data.type == "success"){
//switch to read-only mode
$("#priceList_edit").toggle();
$("#priceList_form").find("input").addClass("noBorder");
$("#priceList_form").find("input").attr('readonly', 'readonly');
$(".copy").hide();
$("#priceList_buttons").hide();
}});
$(this).submitForm();
return false;
Expand Down Expand Up @@ -103,6 +106,7 @@ window.EditPriceListView = Backbone.View.extend({
$(".jstree-leaf").find("a").css({ 'color':'black'})
// change selected node
$(self).find("a").css({ 'color':'red', 'font-weight': '600'});
$("#priceList_buttons").hide();
$(".priceList_table > tbody").html(data);
},
error: function (request, state, errors) {
Expand Down

0 comments on commit 58ecc7e

Please sign in to comment.