Subversion Repositories SmartDukaan

Rev

Rev 29153 | Rev 29163 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 29153 Rev 29156
Line 961... Line 961...
961
                            </h4>
961
                            </h4>
962
                            <h4 style="color:green;margin-top:0px;margin-bottom:0px;">
962
                            <h4 style="color:green;margin-top:0px;margin-bottom:0px;">
963
                            	$offer.getDashboardHtml()
963
                            	$offer.getDashboardHtml()
964
                            </h4>
964
                            </h4>
965
                            <p style="float:right;font-size:15px; margin:0px 0px 0px; " class="description-offer"
965
                            <p style="float:right;font-size:15px; margin:0px 0px 0px; " class="description-offer"
966
                               data-offerid="$offer.getId()" data-toggle="modal" data-target="#offerDescription"
966
                               data-offerid="$offer.getId()" data-toggle="modal"
967
                               data-backdrop="static" data-keyboard="false"><a href="javascript:void(0)">All terms & conditions</a></p>
967
                               data-backdrop="static" data-keyboard="false"><a href="javascript:void(0)">All terms & conditions</a></p>
968
                        </div>
968
                        </div>
969
                    #end
969
                    #end
970
                    <div class="offer-margin-container">
970
                    <div class="offer-margin-container">
971
                        <div class="modal  text-center" id="offerDescription">
971
                        <div class="modal  text-center" id="offerDescription">
972
                            <div class="modal-dialog modal-dialog-scrollable">
972
                            <div class="modal-dialog modal-lg modal-dialog-scrollable">
973
                                <div class="modal-content">
973
                                <div class="modal-content">
974
                                </div>
974
                                </div>
975
                            </div>
975
                            </div>
976
                        </div>
976
                        </div>
977
                    </div>
977
                    </div>
Line 1027... Line 1027...
1027
    </script>
1027
    </script>
1028
    #parse("include-scripts.vm")
1028
    #parse("include-scripts.vm")
1029
 
1029
 
1030
    <script type="text/javascript">
1030
    <script type="text/javascript">
1031
        $(document).ready(function () {
1031
        $(document).ready(function () {
-
 
1032
          $("#offerDescription").modal({backdrop:"static", keyboard:true, focus:true, show:false});
1032
          var salesCloseFlag = true;
1033
          var salesCloseFlag = true;
1033
            $("#blue-dropdown").click(function () {
1034
            $("#blue-dropdown").click(function () {
1034
                // console.log("clicked");
1035
                // console.log("clicked");
1035
                if (salesCloseFlag) {
1036
                if (salesCloseFlag) {
1036
                    var containerWidth = $(".blue-bg").width()
1037
                    var containerWidth = $(".blue-bg").width()
Line 1148... Line 1149...
1148
                    var offerid = $(this).data('offerid');
1149
                    var offerid = $(this).data('offerid');
1149
                    console.log(offerid);
1150
                    console.log(offerid);
1150
                    doGetAjaxRequestHandler(context + "/getOfferMargins?offerId="
1151
                    doGetAjaxRequestHandler(context + "/getOfferMargins?offerId="
1151
                            + offerid, function (response) {
1152
                            + offerid, function (response) {
1152
                        $('.offer-margin-container .modal-content').html(response);
1153
                        $('.offer-margin-container .modal-content').html(response);
-
 
1154
                        $("#offerDescription").modal('handleUpdate');
-
 
1155
                        $("#offerDescription").modal('show');
1153
                    });
1156
                    });
1154
                });
1157
                });
1155
 
1158
 
1156
 
1159
 
1157
        $(document).on("click", ".cancel-description",
1160
        $(document).on("click", ".cancel-description",