Sha256: 176040793712267d6204e2c498970d1c9b6ae591be7f3ce20c5f7d2714f05955
Contents?: true
Size: 981 Bytes
Versions: 1
Compression:
Stored size: 981 Bytes
Contents
<%# это приходит в ответ на запрос формы, завёрнутой в popup (такие запросы отправляют кнопки, обработанные RefinePriceDecorator) %> var $body = $('body'); // вставим окно var html_str = "<%= j render_popup_refine_price(params) %>"; var $m = $(html_str); $body.append($m); // покажем окно $('#c80_refine_price_bs_modal') .modal('show') .on('hidden.bs.modal', function () { $(this).remove(); //console.log($(this)); }); // настроим форму var $form = $("form#form_refine_price"); $form.bind("ajax:error", function (event, data, status, xhr) { $form.render_form_errors($.parseJSON(data.responseText)); }); $form.modal_success(); var $t = $form.find("textarea"); $t.data('toggle', 'tooltip'); $t.data('placement', 'right'); $t.data('title', 'Укажите желаемое количество.'); $t.tooltip();
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
c80_refine_price-0.1.0.3 | app/views/c80_refine_price/application/refine_price_popup.js.erb |