public string getPrefix(JsNumber price)
 {
     JsString res = price.As<JsString>();
     if (res.indexOf(".") > 0) {
         res = res.substr(0, res.indexOf("."));
     }
     return res;
 }
示例#2
0
 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>());
 }
示例#3
0
        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>());

        }
示例#4
0
 public string getSuffix(JsNumber price)
 {
     JsString res = price.As<JsString>();
     if (res.indexOf(".") > 0) {
         res = res.substr(res.indexOf(".") + 1);
     }
     else {
         res = "";
     }
     return res;
 }