This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import Component from '@glimmer/component'; | |
import { action } from '@ember/object'; | |
import { tracked } from '@glimmer/tracking'; | |
export default class SimpleDrag extends Component { | |
@tracked statusText = ""; | |
@tracked overDropZone = false; | |
@action dragHasStarted() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Performs a git rm on every deleted file. | |
deletion_list=$(git status | grep deleted: | cut -c 15-) | |
for file in $deletion_list; do | |
git rm --ignore-unmatch $file | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//событие подмены нужной цены для покупки услуг | |
AddEventHandler("catalog", "OnGetOptimalPrice", 'OnGetOptimalPriceHandler'); | |
function OnGetOptimalPriceHandler($productID) | |
{ | |
//получаем id инфоблока покупаемого товара. Если это услуга, то подменяем цену. | |
$db_iblock = CIBlockElement::GetList(array(), array("ID" => $productID), false, false, array("IBLOCK_ID")); | |
$iblock = $db_iblock->Fetch(); | |