public string getPrefix(JsNumber price) { JsString res = price.As<JsString>(); if (res.indexOf(".") > 0) { res = res.substr(0, res.indexOf(".")); } return res; }
static void updateCounterStatus(jQuery event_counter, JsNumber new_count) { if (!event_counter.hasClass("ui-state-hover")) { event_counter.addClass("ui-state-hover") .siblings().removeClass("ui-state-hover"); } // ...then update the numbersKD new jQuery("span.count", event_counter).text(new_count.As <JsString>()); }
static void updateCounterStatus(jQuery event_counter, JsNumber new_count) { if (!event_counter.hasClass("ui-state-hover")) { event_counter.addClass("ui-state-hover") .siblings().removeClass("ui-state-hover"); } // ...then update the numbersKD new jQuery("span.count", event_counter).text(new_count.As<JsString>()); }
public string getSuffix(JsNumber price) { JsString res = price.As<JsString>(); if (res.indexOf(".") > 0) { res = res.substr(res.indexOf(".") + 1); } else { res = ""; } return res; }