AntonLV 9 лет назад
Родитель
Сommit
561a657899
2 измененных файлов с 4 добавлено и 1 удалено
  1. 3 0
      inc/js/jquery.dolPopup.js
  2. 1 1
      template/scripts/BxBaseServices.php

+ 3 - 0
inc/js/jquery.dolPopup.js

@@ -583,6 +583,9 @@
     	if(options.message)
     		oPPopup.find('.popup_prompt_text').html(options.message);
 
+    	if(options.value)
+    		oPPopup.setValue(options.value);
+
     	oPPopup.find('.popup_prompt_ok').bind('click', function() {
 			if(options.onClickOk && typeof(options.onClickOk) == 'function')
 				options.onClickOk(oPPopup);

+ 1 - 1
template/scripts/BxBaseServices.php

@@ -150,7 +150,7 @@ class BxBaseServices extends BxDol implements iBxDolProfileService
     {
         $oTemplate = BxDolTemplate::getInstance();
 
-        $sInputText = '$bx-popup-prompt-value';
+        $sInputText = 'bx-popup-prompt-value';
         $aInputText = array(
             'type' => 'text',
             'name' => $sInputText,